1
0
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:
impca 2019-02-14 08:29:47 +01:00 committed by GitHub
parent c29275315e
commit 9add96a0d3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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