From 4ae5b263e0878c39ef0a17369800b243ebc684ac Mon Sep 17 00:00:00 2001 From: jmdekker2 Date: Mon, 19 May 2025 14:39:02 +0200 Subject: [PATCH] Update install_nextcloud.yml --- install_nextcloud.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/install_nextcloud.yml b/install_nextcloud.yml index 33fdf46..6110c36 100644 --- a/install_nextcloud.yml +++ b/install_nextcloud.yml @@ -1,3 +1,17 @@ +- name: Voeg lokale host toe aan nextcloud groep + hosts: localhost + gather_facts: yes + tasks: + - name: Haal IP-adres op van huidige server + debug: + var: ansible_default_ipv4.address + + - name: Voeg IP-adres toe aan 'nextcloud' groep + add_host: + name: "{{ ansible_default_ipv4.address }}" + groups: nextcloud + ansible_user: "{{ ansible_user }}" + - name: Volledige Nextcloud-installatie met veilige Apache + Let's Encrypt hosts: nextcloud become: true