This commit is contained in:
2026-07-25 14:40:04 -05:00
parent 0e820b49f9
commit bcd45cff9e
+41 -9
View File
@@ -221,19 +221,51 @@
#### User: first
- 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
# - name: Create the first user
# become: true
# ansible.builtin.user:
# name: first
# comment: First User
# state: present
# system: false
# create_home: true
# 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
# - 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
become: true
ansible.posix.authorized_key: