Optimized password related stuff

This commit is contained in:
Kevin Veen-Birkenbach 2021-01-01 13:14:12 +01:00
parent eca64d5a6a
commit 1babc060a5
2 changed files with 3 additions and 2 deletions

View File

@ -1 +1 @@
administrator ALL=(ALL:ALL) ALL
administrator ALL=(ALL) ALL

View File

@ -4,7 +4,8 @@
generate_ssh_key: yes
ssh_key_bits: 4096
ssh_key_file: .ssh/id_rsa
group: administrator
update_password: on_create
password: "{{ user_administrator_password | password_hash('sha512') }}"
- name: create /home/administrator/.ssh/authorized_keys
copy: