Skip to content
Snippets Groups Projects
Commit 9eb72b6c authored by nimrod's avatar nimrod
Browse files

Corrected changed_when state for root account lock.

parent 016e2b52
No related branches found
No related tags found
No related merge requests found
......@@ -5,7 +5,7 @@
name: root
expires: 1.0
register: lock_root
changed_when: not 'no changes' in lock_root.stderr
changed_when: not (lock_root.stderr is defined and 'no changes' in lock_root.stderr)
- name: Disable root SSH login
lineinfile:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment