mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-08-29 15:06:26 +02:00
Refactored docker roles
This commit is contained in:
17
roles/independent_user-administrator/tasks/main.yml
Normal file
17
roles/independent_user-administrator/tasks/main.yml
Normal file
@@ -0,0 +1,17 @@
|
||||
- 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
|
||||
|
||||
- name: "create /home/administrator/scripts/"
|
||||
file:
|
||||
path: "/home/administrator/scripts"
|
||||
state: directory
|
||||
owner: administrator
|
||||
group: administrator
|
||||
mode: 0700
|
Reference in New Issue
Block a user