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