Fix modes on Davids stuff
Check / Lint Ansible Files (push) Successful in 5m42s

This commit is contained in:
2025-06-24 14:00:54 +02:00
parent ffa11cfb78
commit 2c13a0da72
2 changed files with 12 additions and 0 deletions
+3
View File
@@ -31,6 +31,7 @@
name: "david"
group: "david"
state: "present"
shell: "/bin/bash"
# Disable password auth
password: "!"
- name: Create David SSH directory
@@ -40,6 +41,7 @@
owner: david
group: david
state: directory
mode: "0700"
- name: Set David SSH key
become: true
ansible.builtin.lineinfile:
@@ -50,6 +52,7 @@ nxEdyH1aEGOGGRqDCp3U/SG46 davidtanner@coolerLaptop2.fritz.box"
group: david
create: true
state: present
mode: "0600"
handlers:
- name: Restart sshd