ansible: fix hushlogin role syntax for consistency

This commit is contained in:
Fernando Schauenburg 2020-12-17 20:06:58 +01:00
parent 4a05ea02ec
commit 5ec6a4df9d

View file

@ -1,10 +1,5 @@
- name: Check if hushlogin exists
register: hushlogin_stat
stat:
path: ~/.hushlogin
- name: Create hushlogin
when: hushlogin_stat.stat.exists == false
- name: Make sure hushlogin exists
file:
state: touch
path: ~/.hushlogin
state: touch