mirror of
https://github.com/ansible/awx.git
synced 2024-10-30 22:21:13 +03:00
update docker compose installer
Only run commands to update certs when config changes.
This commit is contained in:
parent
c29275315e
commit
9add96a0d3
@ -8,10 +8,17 @@
|
||||
template:
|
||||
src: docker-compose.yml.j2
|
||||
dest: "{{ docker_compose_dir }}/docker-compose.yml"
|
||||
register: awx_compose_config
|
||||
|
||||
- name: Start the containers
|
||||
docker_service:
|
||||
project_src: "{{ docker_compose_dir }}"
|
||||
register: awx_compose_start
|
||||
|
||||
- name: Update CA trust in awx_web container
|
||||
command: docker exec awx_web_1 '/usr/bin/update-ca-trust'
|
||||
when: awx_compose_config.changed or awx_compose_start.changed
|
||||
|
||||
- name: Update CA trust in awx_task container
|
||||
command: docker exec awx_task_1 '/usr/bin/update-ca-trust'
|
||||
when: awx_compose_config.changed or awx_compose_start.changed
|
||||
|
Loading…
Reference in New Issue
Block a user