From 7b903cca3b8e58a2371e91a15a463c92a4a78092 Mon Sep 17 00:00:00 2001 From: yohan <783b8c87@scimetis.net> Date: Fri, 8 Nov 2024 20:29:10 +0100 Subject: [PATCH] Fix missing hosts records for SemanticScuttle containers. --- .../role_deploy_SemanticScuttle/tasks/main.yml | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/roles/role_deploy_SemanticScuttle/tasks/main.yml b/roles/role_deploy_SemanticScuttle/tasks/main.yml index a7001df..39cf574 100644 --- a/roles/role_deploy_SemanticScuttle/tasks/main.yml +++ b/roles/role_deploy_SemanticScuttle/tasks/main.yml @@ -121,12 +121,6 @@ failed_when: false become: true -- name: Add php5-fpm.{{ DOMAIN }} to /etc/hosts - ansible.builtin.lineinfile: - path: "/etc/hosts" - line: "127.0.0.1 php5-fpm.{{ DOMAIN }} php5-fpm" - become: true - - name: Create apache-scuttle container containers.podman.podman_container: name: apache-scuttle @@ -157,6 +151,18 @@ path: /etc/systemd/system become: true +- name: Add php5-fpm.{{ DOMAIN }} to /etc/hosts + ansible.builtin.lineinfile: + path: "/etc/hosts" + line: "127.0.0.1 php5-fpm.{{ DOMAIN }} php5-fpm" + become: true + +- name: Add apache-scuttle.{{ DOMAIN }} to /etc/hosts + ansible.builtin.lineinfile: + path: "/etc/hosts" + line: "127.0.0.1 apache-scuttle.{{ DOMAIN }} apache-scuttle" + become: true + - name: start/enable container service ansible.builtin.systemd: daemon-reload: true