computer-playbook/roles/independent_user-administrator/tasks/main.yml

17 lines
461 B
YAML
Raw Normal View History

2023-04-26 11:52:11 +02:00
- name: create administrator
user:
name: administrator
update_password: on_create
password: "{{ user_administrator_initial_password | password_hash('sha512') }}"
create_home: yes
generate_ssh_key: yes
ssh_key_type: rsa
ssh_key_bits: 8192
2023-04-26 14:38:02 +02:00
- name: "create {{path_administrator_scripts}}"
2023-04-26 11:52:11 +02:00
file:
2023-04-26 14:38:02 +02:00
path: "{{path_administrator_home}}scripts"
2023-04-26 11:52:11 +02:00
state: directory
owner: administrator
group: administrator
mode: 0700