fix: create ~/.hushlogin if it does not exist
This commit is contained in:
parent
ca7061911c
commit
9b3039bc36
@ -43,7 +43,13 @@
|
||||
become: true
|
||||
|
||||
- name: Ensure ~/.hushlogin exists
|
||||
ansible.builtin.stat:
|
||||
path: ~/.hushlogin
|
||||
register: hushlogin_stat
|
||||
|
||||
- name: Create ~/.hushlogin if it does not exist
|
||||
ansible.builtin.file:
|
||||
path: ~/.hushlogin
|
||||
state: touch
|
||||
mode: "0644"
|
||||
when: not hushlogin_stat.stat.exists
|
||||
|
Loading…
x
Reference in New Issue
Block a user