summaryrefslogtreecommitdiff
path: root/playbooks
diff options
context:
space:
mode:
authorIan Wienand <iwienand@redhat.com>2021-05-19 10:47:29 +1000
committerIan Wienand <iwienand@redhat.com>2021-05-19 10:47:29 +1000
commitfb595d0427c3597f82c3ba51e44a38df27f54ade (patch)
tree89c8fdf916c2f8783689c04f0e6dfa5080d81e86 /playbooks
parent641874967ec0c71cd14f6b61710a8b912063c487 (diff)
downloadzuul-fb595d0427c3597f82c3ba51e44a38df27f54ade.tar.gz
tutorial post playbook - ignore errors getting docker logs
Something is failing in here, but we can't see it because the output is all sent to logs which then aren't collected if the task fails. Ignore errors here, that way we should get whatever logs we can. Change-Id: Iba90c5b0b084b8740c40cb4e611eb7d46a83834e
Diffstat (limited to 'playbooks')
-rw-r--r--playbooks/tutorial/post.yaml1
1 files changed, 1 insertions, 0 deletions
diff --git a/playbooks/tutorial/post.yaml b/playbooks/tutorial/post.yaml
index df4d51f71..1ad0cd404 100644
--- a/playbooks/tutorial/post.yaml
+++ b/playbooks/tutorial/post.yaml
@@ -7,6 +7,7 @@
mode: 0755
- name: Save docker log files
become: true
+ ignore_errors: yes
shell: |
docker logs zuultutorial_gerrit_1 > {{ ansible_user_dir }}/logs/gerrit.log 2>&1
docker logs zuultutorial_gerritconfig_1 > {{ ansible_user_dir }}/logs/gerritconfig.log 2>&1