Add missing hosts record for scuttle.

This commit is contained in:
yohan 2024-04-13 13:14:55 +02:00
parent 09c57df1ab
commit 0689d0c10c

View File

@ -78,23 +78,6 @@
- scuttle_php5-fpm_conf
when: not scuttle_installed_flag.stat.exists
# A local volume is needed to store install states
- name: Create /mnt/volumes/install_states directory if it does not exist
ansible.builtin.file:
path: "/mnt/volumes/install_states"
state: directory
mode: '0755'
become: true
when: not scuttle_installed_flag.stat.exists
- name: Create scuttle_installed state file
ansible.builtin.file:
path: "/mnt/volumes/install_states/scuttle_installed"
state: touch
mode: '0755'
become: true
when: not scuttle_installed_flag.stat.exists
- name: Include build_image.yml
ansible.builtin.include_tasks: "tasks/build_image.yml"
with_items:
@ -136,3 +119,27 @@
- /mnt/volumes/scuttle_code/data:/var/www/html:z
- /mnt/volumes/scuttle_php5-fpm_conf/data:/etc/php5/fpm/pool.d:Z
become: true
- name: Add cloud.{{ DOMAIN }} to /etc/hosts
ansible.builtin.lineinfile:
path: "/etc/hosts"
line: "127.0.0.1 scuttle.{{ DOMAIN }} scuttle"
become: true
when: not scuttle_installed_flag.stat.exists
# A local volume is needed to store install states
- name: Create /mnt/volumes/install_states directory if it does not exist
ansible.builtin.file:
path: "/mnt/volumes/install_states"
state: directory
mode: '0755'
become: true
when: not scuttle_installed_flag.stat.exists
- name: Create scuttle_installed state file
ansible.builtin.file:
path: "/mnt/volumes/install_states/scuttle_installed"
state: touch
mode: '0755'
become: true
when: not scuttle_installed_flag.stat.exists