Skip to content
Snippets Groups Projects

Added routine to add ssh key for root

Merged Felix Delattre requested to merge feature/root-ssh-key into master
1 file
+ 9
1
Compare changes
  • Side-by-side
  • Inline
+ 9
1
@@ -12,7 +12,15 @@
- name: Ensure standard user exists.
user:
name: "{{ system_user_username }}"
generate_ssh_key: yes # generate default id_rsa
generate_ssh_key: yes
ssh_key_type: ed25519
password: "{{ system_user_password|password_hash('sha512') }}"
groups: "ssh_login,sudo,docker"
update_password: on_create
- name: Ensure SSH key for root exists.
user:
name: root
generate_ssh_key: yes
ssh_key_type: ed25519
force: no
Loading