This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user