fix: create ~/.hushlogin if it does not exist
Some checks failed
Ansible Lint Check / check-ansible (push) Failing after 15s
Nix Format Check / check-format (push) Successful in 54s

This commit is contained in:
Menno van Leeuwen 2025-03-12 14:11:30 +01:00
parent ca7061911c
commit 9b3039bc36
Signed by: vleeuwenmenno
SSH Key Fingerprint: SHA256:OJFmjANpakwD3F2Rsws4GLtbdz1TJ5tkQF0RZmF0TRE

View File

@ -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