Fix missing hosts records for SemanticScuttle containers.

This commit is contained in:
yohan 2024-11-08 20:29:10 +01:00
parent 8d6c53fe66
commit 7b903cca3b

View File

@ -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