From 695c7177228f8a122815b1238898b13e3b864e5c Mon Sep 17 00:00:00 2001 From: yohan <783b8c87@scimetis.net> Date: Mon, 4 Nov 2024 20:51:18 +0100 Subject: [PATCH] Add nextcloud to /etc/hosts. --- roles/role_deploy_nextcloud/tasks/main.yml | 6 ++++++ 1 file changed, 6 insertions(+) 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: