diff --git a/install_nextcloud_aio.yml b/install_nextcloud_aio.yml index 83f2c69..83f5c70 100644 --- a/install_nextcloud_aio.yml +++ b/install_nextcloud_aio.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: "{{ user }}" + - name: Installeer Nextcloud AIO achter reverse proxy met Certbot hosts: nextcloud become: true