x
This commit is contained in:
+41
-9
@@ -221,19 +221,51 @@
|
|||||||
|
|
||||||
#### User: first
|
#### User: first
|
||||||
|
|
||||||
- name: Set first's authorized_keys
|
# - name: Create the first user
|
||||||
become: true
|
# become: true
|
||||||
ansible.posix.authorized_key:
|
# ansible.builtin.user:
|
||||||
user: first
|
# name: first
|
||||||
state: present
|
# comment: First User
|
||||||
key: "{{ lookup('file', item) }}"
|
# state: present
|
||||||
loop:
|
# system: false
|
||||||
- files/ssh-keys/first.pub
|
# create_home: true
|
||||||
- files/ssh-keys/heath.pub
|
# shell: /usr/bin/bash
|
||||||
|
|
||||||
|
# - name: Set first's authorized_keys
|
||||||
|
# become: true
|
||||||
|
# ansible.posix.authorized_key:
|
||||||
|
# user: first
|
||||||
|
# state: present
|
||||||
|
# key: "{{ lookup('file', item) }}"
|
||||||
|
# loop:
|
||||||
|
# - files/ssh-keys/first.pub
|
||||||
|
# - files/ssh-keys/heath.pub
|
||||||
|
|
||||||
|
|
||||||
#### User: heath
|
#### User: heath
|
||||||
|
|
||||||
|
# - name: Create the heath group
|
||||||
|
# become: true
|
||||||
|
# ansible.builtin.group:
|
||||||
|
# name: heath
|
||||||
|
# state: present
|
||||||
|
# system: false
|
||||||
|
# gid: 8000
|
||||||
|
|
||||||
|
# - name: Create the heath user
|
||||||
|
# become: true
|
||||||
|
# ansible.builtin.user:
|
||||||
|
# name: heath
|
||||||
|
# comment: Heath Petersen
|
||||||
|
# state: present
|
||||||
|
# system: false
|
||||||
|
# uid: 8000
|
||||||
|
# group: heath
|
||||||
|
# groups: hpf-sudo
|
||||||
|
# append: true
|
||||||
|
# create_home: true
|
||||||
|
# shell: /usr/bin/bash
|
||||||
|
|
||||||
- name: Set heath's authorized_keys
|
- name: Set heath's authorized_keys
|
||||||
become: true
|
become: true
|
||||||
ansible.posix.authorized_key:
|
ansible.posix.authorized_key:
|
||||||
|
|||||||
Reference in New Issue
Block a user