Podman support in haproxy-public-tls-inject

Fix a few Ansible tasks where only Docker were supported.

Change-Id: If51e30854fc7ec27b3d12ccda0595ac0ff4b1e20
This commit is contained in:
Emilien Macchi 2019-02-20 14:45:09 -05:00
parent 6f73f44a28
commit dbf63314d5
1 changed files with 3 additions and 3 deletions

View File

@ -104,10 +104,10 @@ outputs:
- name: get container_id
when:
- docker_state.status.ActiveState == 'active'
- docker_state.status.ActiveState == 'active' or container_cli == 'podman
- attr_cert_path.stat.exists
- attr_cert_path.stat.isdir == False
command: docker ps -q -f name=haproxy
command: "{{ container_cli }} ps -q -f name=haproxy"
register: container_id
- name: get pcs resource name for haproxy container
@ -210,5 +210,5 @@ outputs:
when: kolla_cert_exists.stat.exists
- name: send restart order to haproxy container
command: docker kill --signal=HUP {{container_id.stdout}}
command: "{{ container_cli }} kill --signal=HUP {{container_id.stdout}}"
when: kolla_cert_exists.stat.exists