From 7e72cb216a6595342448c4ed25468307574c9050 Mon Sep 17 00:00:00 2001 From: Sorin Sbarnea Date: Sat, 6 Mar 2021 10:45:28 +0000 Subject: [PATCH] Made code pass ansible-lint v5 checks Related: https://github.com/ansible-community/ansible-lint/pull/1434 --- .ansible-lint | 4 ++++ roles/jenkins/tasks/main.yml | 3 ++- roles/jenkins_configure/tasks/ensure_up.yml | 3 ++- roles/mirror/molecule/shared/playbook.yml | 3 ++- 4 files changed, 10 insertions(+), 3 deletions(-) create mode 100644 .ansible-lint diff --git a/.ansible-lint b/.ansible-lint new file mode 100644 index 0000000..67a698f --- /dev/null +++ b/.ansible-lint @@ -0,0 +1,4 @@ +skip_list: + # temporary added during migration to v5 + - yaml + - no-handler diff --git a/roles/jenkins/tasks/main.yml b/roles/jenkins/tasks/main.yml index cbcd6e1..3f7c9b2 100644 --- a/roles/jenkins/tasks/main.yml +++ b/roles/jenkins/tasks/main.yml @@ -32,7 +32,8 @@ become_user: "{{ jenkins_user }}" notify: generate public SSH key -- meta: flush_handlers +- name: flush handlers + meta: flush_handlers - name: read SSH key become: true diff --git a/roles/jenkins_configure/tasks/ensure_up.yml b/roles/jenkins_configure/tasks/ensure_up.yml index c16c760..84fcf43 100644 --- a/roles/jenkins_configure/tasks/ensure_up.yml +++ b/roles/jenkins_configure/tasks/ensure_up.yml @@ -40,7 +40,8 @@ 'Error' in _auth_check.output or 'Error' in ( _auth_check.msg | default('') ) - - debug: + - name: print _auth_check + debug: var: _auth_check - name: save API key diff --git a/roles/mirror/molecule/shared/playbook.yml b/roles/mirror/molecule/shared/playbook.yml index 32cc0aa..2302c41 100644 --- a/roles/mirror/molecule/shared/playbook.yml +++ b/roles/mirror/molecule/shared/playbook.yml @@ -29,5 +29,6 @@ register: _mirror changed_when: false - - debug: + - name: print mirror output + debug: var: _mirror.stdout