2020-12-25 15:38:42 +01:00
|
|
|
- name: create /home/administrator/.ssh/authorized_keys
|
|
|
|
copy:
|
|
|
|
src: "{{ inventory_dir }}/files/{{ inventory_hostname }}/home/administrator/.ssh/authorized_keys"
|
|
|
|
dest: /home/administrator/.ssh/authorized_keys
|
|
|
|
owner: administrator
|
|
|
|
group: administrator
|
|
|
|
mode: '0644'
|
|
|
|
|
2020-12-31 17:01:47 +01:00
|
|
|
- name: grant administrator sudo rights with password
|
2020-12-25 15:38:42 +01:00
|
|
|
copy:
|
2021-01-01 12:51:40 +01:00
|
|
|
src: "administrator"
|
|
|
|
dest: /etc/sudoers.d/administrator
|
|
|
|
mode: '0644'
|
|
|
|
owner: root
|
|
|
|
group: root
|
2021-01-10 19:37:44 +01:00
|
|
|
notify: sshd restart
|
2021-10-18 18:46:58 +02:00
|
|
|
|
|
|
|
- name: "create /home/administrator/volumes/"
|
|
|
|
file:
|
|
|
|
path: "/home/administrator/volumes"
|
|
|
|
state: directory
|
|
|
|
owner: administrator
|
|
|
|
group: administrator
|
|
|
|
mode: 0700
|