|
|
@ -115,9 +115,15 @@
|
|
|
|
name: openvpn-client@{{SERVER_NAME}}
|
|
|
|
name: openvpn-client@{{SERVER_NAME}}
|
|
|
|
state: restarted
|
|
|
|
state: restarted
|
|
|
|
enabled: yes
|
|
|
|
enabled: yes
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- name: generate disposable user password
|
|
|
|
|
|
|
|
shell: dd if=/dev/urandom count=100 | md5sum
|
|
|
|
|
|
|
|
register: user_password
|
|
|
|
|
|
|
|
|
|
|
|
- name: Add the backup user
|
|
|
|
- name: Add the backup user
|
|
|
|
ansible.builtin.user:
|
|
|
|
ansible.builtin.user:
|
|
|
|
name: "{{SERVER_NAME}}-backup"
|
|
|
|
name: "{{SERVER_NAME}}-backup"
|
|
|
|
|
|
|
|
password: "{{user_password.stdout | password_hash('sha512')}}"
|
|
|
|
|
|
|
|
|
|
|
|
- name: set permissions on backup dir
|
|
|
|
- name: set permissions on backup dir
|
|
|
|
file:
|
|
|
|
file:
|
|
|
|