health container and filebrowser container now active
Configuration needed at this point however
This commit is contained in:
@@ -1,16 +1,30 @@
|
||||
- name: Ensure docker dir is present
|
||||
ansible.builtin.file:
|
||||
path: "{{ docker_compose_dir }}"
|
||||
path: "{{ services.compose_dir }}"
|
||||
state: directory
|
||||
mode: "0755"
|
||||
- name: Collect id -u result
|
||||
ansible.builtin.command:
|
||||
cmd: id -u
|
||||
register: id_u
|
||||
changed_when: false
|
||||
- name: Collect id -g result
|
||||
ansible.builtin.command:
|
||||
cmd: id -g
|
||||
register: id_g
|
||||
changed_when: false
|
||||
- name: Ensure compose.yaml is present
|
||||
vars:
|
||||
puid: "{{ id_u.stdout }}"
|
||||
pgid: "{{ id_g.stdout }}"
|
||||
health_port: "{{ services.health.port }}"
|
||||
ansible.builtin.template:
|
||||
src: compose.yaml
|
||||
dest: "{{ docker_compose_dir }}/compose.yaml"
|
||||
dest: "{{ services.compose_dir }}/compose.yaml"
|
||||
mode: "0644"
|
||||
- name: Apply docker compose with services
|
||||
community.docker.docker_compose_v2:
|
||||
project_src: "{{ docker_compose_dir }}"
|
||||
project_src: "{{ services.compose_dir }}"
|
||||
register: compose_output
|
||||
- name: Show output of docker compose apply
|
||||
ansible.builtin.debug:
|
||||
|
||||
Reference in New Issue
Block a user