Skip to content

Commit

Permalink
Fix ansible-lint errors and warnings.
Browse files Browse the repository at this point in the history
- Allow "Git checkouts must contain explicit version" error.
- No changed is reported on FAILURE.
  • Loading branch information
nhosoi committed Dec 16, 2022
1 parent dc66886 commit 604afea
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions .ansible-lint
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
---
skip_list:
- '401'
- '403'
3 changes: 3 additions & 0 deletions tests/tasks/setup_ipa.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@
rescue:
- name: FAILURE - check entropy
command: cat /proc/sys/kernel/random/entropy_avail
changed_when: false
- name: FAILURE - get logs for debugging
shell: |-
set -euo pipefail
Expand All @@ -64,6 +65,7 @@
chmod '0644' /tmp/ipalogs.tgz
args:
warn: false # suppress 'unarchive' warning
changed_when: false
- name: FAILURE - grab archive
fetch:
src: /tmp/ipalogs.tgz
Expand All @@ -78,6 +80,7 @@
args:
warn: false # suppress 'unarchive' warning
delegate_to: 127.0.0.1
changed_when: false
- name: failed
fail:
msg: failed
Expand Down

0 comments on commit 604afea

Please sign in to comment.