Removed ssh key generation because administrator doesn't need to connect to other pcs

This commit is contained in:
Kevin Veen-Birkenbach 2021-01-01 13:34:29 +01:00
parent c45fa6ce94
commit e2091a0df7
2 changed files with 3 additions and 4 deletions

View File

@ -1,4 +1,6 @@
# Role Administrator
This role creates an standard administrator user.
This user needs to type in his password before executing sudo.
This user needs to type in his password before executing sudo.
For security reasons it's recommended to use this user instead of the standard root user.
This user should not be used to login to other systems. It's just there to let administration tasks run.
For this reason no ssh-keys are generated.

View File

@ -1,9 +1,6 @@
- name: create administrator
user:
name: administrator
generate_ssh_key: yes
ssh_key_bits: 4096
ssh_key_file: .ssh/id_rsa
update_password: on_create
password: "{{ user_administrator_initial_password | password_hash('sha512') }}"