ansible: fix hushlogin role syntax for consistency
This commit is contained in:
parent
4a05ea02ec
commit
5ec6a4df9d
1 changed files with 3 additions and 8 deletions
|
@ -1,10 +1,5 @@
|
||||||
- name: Check if hushlogin exists
|
- name: Make sure hushlogin exists
|
||||||
register: hushlogin_stat
|
|
||||||
stat:
|
|
||||||
path: ~/.hushlogin
|
|
||||||
|
|
||||||
- name: Create hushlogin
|
|
||||||
when: hushlogin_stat.stat.exists == false
|
|
||||||
file:
|
file:
|
||||||
state: touch
|
|
||||||
path: ~/.hushlogin
|
path: ~/.hushlogin
|
||||||
|
state: touch
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue