Compare commits
2
Commits
7f0f540ca3
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
8984d6368c
|
||
|
|
16a4f97564
|
@@ -49,6 +49,7 @@
|
|||||||
ansible.builtin.command: openssl passwd -6 -salt "{{ salt }}" "{{ password }}"
|
ansible.builtin.command: openssl passwd -6 -salt "{{ salt }}" "{{ password }}"
|
||||||
register: username_shadowpw
|
register: username_shadowpw
|
||||||
changed_when: false
|
changed_when: false
|
||||||
|
check_mode: false
|
||||||
|
|
||||||
- name: Set password value fact for user {{ username }}
|
- name: Set password value fact for user {{ username }}
|
||||||
ansible.builtin.set_fact:
|
ansible.builtin.set_fact:
|
||||||
@@ -62,6 +63,7 @@
|
|||||||
# SSH
|
# SSH
|
||||||
generate_ssh_key: "{{ generate_ssh_key }}"
|
generate_ssh_key: "{{ generate_ssh_key }}"
|
||||||
ssh_key_type: "{{ ssh_key_type }}"
|
ssh_key_type: "{{ ssh_key_type }}"
|
||||||
|
ssh_key_comment: "{{ username }}@{{ ansible_fqdn }}"
|
||||||
# Groups
|
# Groups
|
||||||
groups: "{{ user_groups }}"
|
groups: "{{ user_groups }}"
|
||||||
append: "{{ groups_append }}"
|
append: "{{ groups_append }}"
|
||||||
|
|||||||
Reference in New Issue
Block a user