x
This commit is contained in:
+14
-1
@@ -8,8 +8,21 @@
|
||||
become: true
|
||||
ansible.builtin.user:
|
||||
name: second
|
||||
comment: Second User
|
||||
comment: second User
|
||||
state: present
|
||||
system: false
|
||||
groups: hpf-sudo-np
|
||||
append: true
|
||||
create_home: true
|
||||
shell: /usr/bin/bash
|
||||
uid: 60002
|
||||
|
||||
- name: Set second's authorized_keys
|
||||
become: true
|
||||
ansible.posix.authorized_key:
|
||||
user: second
|
||||
state: present
|
||||
key: "{{ lookup('file', item) }}"
|
||||
loop:
|
||||
- files/ssh-keys/second.pub
|
||||
- files/ssh-keys/heath.pub
|
||||
|
||||
Reference in New Issue
Block a user