Skip to content

Commit 6b7c78b

Browse files
committed
Do not print some env_op_images and e2e-collect-logs tasks
The tasks gives a lot of output, where later you can find it in log file. Signed-off-by: Daniel Pawlik <[email protected]>
1 parent deb0713 commit 6b7c78b

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

ci/playbooks/e2e-collect-logs.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,12 @@
2525
gather_facts: true
2626
tasks:
2727
- name: Run run_logs tasks from cifmw_setup
28-
ansible.builtin.command: >
28+
ansible.builtin.shell: >
2929
ansible localhost
3030
-m include_role
3131
-a "name=cifmw_setup tasks_from=run_logs.yml"
3232
-e "@scenarios/centos-9/base.yml"
33+
&> /dev/null
3334
args:
3435
chdir: "{{ ansible_user_dir }}/src/github.com/openstack-k8s-operators/ci-framework"
3536
environment:

roles/env_op_images/tasks/main.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@
5353
--all-namespaces
5454
-o yaml
5555
register: _csvs_out
56+
no_log: "{{ cifmw_nolog | default(true) | bool }}"
5657

5758
- name: Get the images name
5859
ansible.builtin.shell: >
@@ -129,6 +130,7 @@
129130
loop: "{{ selected_pods }}"
130131
loop_control:
131132
label: "{{ item.metadata.name }}"
133+
no_log: "{{ cifmw_nolog | default(true) | bool }}"
132134

133135
- name: Write images to file
134136
vars:

0 commit comments

Comments
 (0)