Browse Source

Stop caturing stdout for container-image-prepare

We log container-image-prepare to a file so we should just /dev/null
stdout. stderr will still be captured if something goes wrong but the
stdout is excessively large especially with --debug enabled.

Change-Id: I5110a9e2bd3888c9aae174fd27cede0e89d1046a
(cherry picked from commit 569b428498)
changes/01/743201/1
Alex Schultz 2 weeks ago
committed by Emilien Macchi
parent
commit
8d961c871e
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      tripleo_ansible/roles/tripleo_container_image_prepare/tasks/main.yml

+ 2
- 1
tripleo_ansible/roles/tripleo_container_image_prepare/tasks/main.yml View File

@@ -48,7 +48,7 @@
content: "{{ tripleo_container_image_prepare_roles }}"

- name: "Run tripleo_container_image_prepare logged to: {{ tripleo_container_image_prepare_log_file }}"
command: >-
shell: >-
/usr/bin/tripleo-container-image-prepare
--roles-file {{ role_data.path }}
--environment-file {{ prepare_param.path }}
@@ -57,6 +57,7 @@
{% if (tripleo_container_image_prepare_debug | bool) %}
--debug
{% endif %}
>/dev/null
no_log: "{{ not tripleo_container_image_prepare_debug | bool }}"
when:
- (tripleo_container_image_prepare_content | dict2items | length) > 0


Loading…
Cancel
Save