mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2024-11-22 20:51:07 +01:00
Removed independent_user-administrator role
This commit is contained in:
parent
58925f3afa
commit
89b4a9bda1
@ -1,17 +0,0 @@
|
|||||||
- 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 {{path_administrator_scripts}}"
|
|
||||||
file:
|
|
||||||
path: "{{path_administrator_home}}scripts"
|
|
||||||
state: directory
|
|
||||||
owner: administrator
|
|
||||||
group: administrator
|
|
||||||
mode: 0700
|
|
@ -1,3 +1,2 @@
|
|||||||
dependencies:
|
dependencies:
|
||||||
- native-sudo
|
- native-sudo
|
||||||
- independent_user-administrator
|
|
||||||
|
@ -1,3 +1,21 @@
|
|||||||
|
- 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 {{path_administrator_scripts}}"
|
||||||
|
file:
|
||||||
|
path: "{{path_administrator_home}}scripts"
|
||||||
|
state: directory
|
||||||
|
owner: administrator
|
||||||
|
group: administrator
|
||||||
|
mode: 0700
|
||||||
|
|
||||||
- name: create {{path_administrator_home}}.ssh/authorized_keys
|
- name: create {{path_administrator_home}}.ssh/authorized_keys
|
||||||
copy:
|
copy:
|
||||||
src: "{{ inventory_dir }}/files/{{ inventory_hostname }}{{path_administrator_home}}.ssh/authorized_keys"
|
src: "{{ inventory_dir }}/files/{{ inventory_hostname }}{{path_administrator_home}}.ssh/authorized_keys"
|
||||||
|
Loading…
Reference in New Issue
Block a user