diff --git a/roles/role_deploy_nextcloud/tasks/main.yml b/roles/role_deploy_nextcloud/tasks/main.yml index 60e1837..32e28eb 100644 --- a/roles/role_deploy_nextcloud/tasks/main.yml +++ b/roles/role_deploy_nextcloud/tasks/main.yml @@ -136,6 +136,12 @@ line: "127.0.0.1 cloud.{{ DOMAIN }} cloud" become: true +- name: Add nextcloud.{{ DOMAIN }} to /etc/hosts + ansible.builtin.lineinfile: + path: "/etc/hosts" + line: "127.0.0.1 nextcloud.{{ DOMAIN }} nextcloud" + become: true + # A local volume is needed to store restore states - name: Create /mnt/volumes/restore_states directory if it does not exist ansible.builtin.file: