Skip to content
Snippets Groups Projects
Commit 3e0634aa authored by nimrod's avatar nimrod
Browse files

- Expire date requires floating point number.

- Better handling of changed state.
parent 7c54ee6f
No related branches found
No related tags found
No related merge requests found
...@@ -3,7 +3,9 @@ ...@@ -3,7 +3,9 @@
- name: Disable root account - name: Disable root account
user: user:
name: root name: root
expires: 1 expires: 1.0
register: lock_root
changed_when: not 'no changes' in lock_root.stderr
- name: Disable root SSH login - name: Disable root SSH login
lineinfile: lineinfile:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment