deploy-steps-tasks: replace paunch CLI by ansible-paunch module

It does the same thing as before, but with Ansible.

Change-Id: Ic5efe0c36727e413fcc4896de608932724b8d3b2
This commit is contained in:
Emilien Macchi 2019-09-13 11:53:55 -04:00
parent c2d4816840
commit 548fcc7b49

View File

@ -239,17 +239,17 @@
- name: Start containers for step {{ step }}
environment:
TRIPLEO_MINOR_UPDATE: '{{ tripleo_minor_update | default(false) }}'
command: >-
paunch {% if enable_debug|bool %}--debug{% else %}-v{% endif %} apply
--default-runtime "{{ container_cli }}"
--container-log-path "{{ container_log_stdout_path }}"
{% if container_healthcheck_disabled|bool and container_cli == 'podman' %}--healthcheck-disabled{% endif %}
--file /var/lib/tripleo-config/hashed-container-startup-config-step_{{ step }}.json
--config-id tripleo_step{{ step }} --managed-by tripleo-{{ tripleo_role_name }}
changed_when: false
paunch:
config: "/var/lib/tripleo-config/hashed-container-startup-config-step_{{ step }}.json"
config_id: "tripleo_step{{ step }}"
action: apply
container_cli: "{{ container_cli }}"
container_log_stdout_path: "{{ container_log_stdout_path }}"
healthcheck_disabled: "{{ container_healthcheck_disabled | bool }}"
managed_by: "tripleo-{{ tripleo_role_name }}"
debug: "{{ enable_debug | bool }}"
register: outputs
failed_when: false
no_log: true
tags:
- container_startup_configs