diff --git a/playbooks/patching-verification.yml b/playbooks/patching-verification.yml index 4959dbf..39e3c7f 100644 --- a/playbooks/patching-verification.yml +++ b/playbooks/patching-verification.yml @@ -1,6 +1,6 @@ --- # patching.yml -# +# # Variables: # - hosts: what hosts in the inventory to use # - threads: how many to check in parallel @@ -8,12 +8,12 @@ order: sorted serial: "{{ threads | default('4') }}" ignore_unreachable: true - vars: + vars: ansible_become: no tasks: - name: Check updates - yum: + yum: list=updates update_cache=true ignore_errors: true @@ -21,7 +21,7 @@ - name: Patching succeeded ignore_errors: true - assert: - that: + assert: + that: - yumupdates.results|length == 0 - df_output.stdout is search("rhel-7-server-rpms-nist")