Use host network for SemanticScuttle containers.
This commit is contained in:
parent
c51ddae051
commit
8d6c53fe66
@ -42,11 +42,6 @@
|
|||||||
path: /mnt/volumes/restore_states/scuttle_restored
|
path: /mnt/volumes/restore_states/scuttle_restored
|
||||||
register: scuttle_restored_flag
|
register: scuttle_restored_flag
|
||||||
|
|
||||||
- name: Create php5-fpm network
|
|
||||||
containers.podman.podman_network:
|
|
||||||
name: php5-fpm
|
|
||||||
become: true
|
|
||||||
|
|
||||||
- name: Create volumes directories
|
- name: Create volumes directories
|
||||||
ansible.builtin.file:
|
ansible.builtin.file:
|
||||||
path: "/mnt/volumes/{{ item }}"
|
path: "/mnt/volumes/{{ item }}"
|
||||||
@ -126,14 +121,19 @@
|
|||||||
failed_when: false
|
failed_when: false
|
||||||
become: true
|
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
|
- name: Create apache-scuttle container
|
||||||
containers.podman.podman_container:
|
containers.podman.podman_container:
|
||||||
name: apache-scuttle
|
name: apache-scuttle
|
||||||
image: "{{ private_registry_domain }}/apache-scuttle:72099cd4a1"
|
image: "{{ private_registry_domain }}/apache-scuttle:72099cd4a1"
|
||||||
state: present
|
state: present
|
||||||
network:
|
network:
|
||||||
- reverse-proxy
|
- host
|
||||||
- php5-fpm
|
|
||||||
volume:
|
volume:
|
||||||
- /mnt/volumes/scuttle_code/data:/var/www/html:z
|
- /mnt/volumes/scuttle_code/data:/var/www/html:z
|
||||||
env:
|
env:
|
||||||
@ -149,9 +149,7 @@
|
|||||||
image: "{{ private_registry_domain }}/php5-fpm:f533a39b96"
|
image: "{{ private_registry_domain }}/php5-fpm:f533a39b96"
|
||||||
state: present
|
state: present
|
||||||
network:
|
network:
|
||||||
- php5-fpm
|
- host
|
||||||
- mysqlnet
|
|
||||||
dns_search: "{{ SHORTNAME }}-sub.{{ DOMAIN }}"
|
|
||||||
volume:
|
volume:
|
||||||
- /mnt/volumes/scuttle_code/data:/var/www/html:z
|
- /mnt/volumes/scuttle_code/data:/var/www/html:z
|
||||||
- /mnt/volumes/scuttle_php5-fpm_conf/data:/etc/php5/fpm/pool.d:Z
|
- /mnt/volumes/scuttle_php5-fpm_conf/data:/etc/php5/fpm/pool.d:Z
|
||||||
@ -170,7 +168,7 @@
|
|||||||
- apache-scuttle
|
- apache-scuttle
|
||||||
- php5-fpm
|
- php5-fpm
|
||||||
|
|
||||||
- name: Add cloud.{{ DOMAIN }} to /etc/hosts
|
- name: Add scuttle.{{ DOMAIN }} to /etc/hosts
|
||||||
ansible.builtin.lineinfile:
|
ansible.builtin.lineinfile:
|
||||||
path: "/etc/hosts"
|
path: "/etc/hosts"
|
||||||
line: "127.0.0.1 scuttle.{{ DOMAIN }} scuttle"
|
line: "127.0.0.1 scuttle.{{ DOMAIN }} scuttle"
|
||||||
|
@ -134,7 +134,7 @@
|
|||||||
command: 'sh -c ''service apache2 reload'''
|
command: 'sh -c ''service apache2 reload'''
|
||||||
become: true
|
become: true
|
||||||
|
|
||||||
- name: Add cloud.{{ DOMAIN }} to /etc/hosts
|
- name: Add registry.{{ DOMAIN }} to /etc/hosts
|
||||||
ansible.builtin.lineinfile:
|
ansible.builtin.lineinfile:
|
||||||
path: "/etc/hosts"
|
path: "/etc/hosts"
|
||||||
line: "127.0.0.1 registry.{{ DOMAIN }} registry"
|
line: "127.0.0.1 registry.{{ DOMAIN }} registry"
|
||||||
|
Loading…
Reference in New Issue
Block a user