29 lines
701 B
YAML
29 lines
701 B
YAML
---
|
|
- name: Create qbit_torrentleech-config directory
|
|
file:
|
|
path: "{{ item }}"
|
|
owner: "{{ puid }}"
|
|
group: "{{ pgid }}"
|
|
mode: '775'
|
|
state: directory
|
|
loop:
|
|
- "{{ qbit_private_remote_config }}"
|
|
- "{{ qbit_private_remote_config }}/openvpn"
|
|
- "{{ qbit_downloads }}"
|
|
become: true
|
|
|
|
- name: Remove old opnvpn-config
|
|
file:
|
|
path: "{{ qbit_remote_config }}/{{ qbit_old_ovpn_config }}"
|
|
state: absent
|
|
become: true
|
|
|
|
- name: Copy ovpn_torrentleech-config
|
|
template:
|
|
owner: "{{ puid }}"
|
|
group: "{{ pgid }}"
|
|
src: "{{ qbit_config }}/{{ qbit_ovpn_config }}"
|
|
dest: "{{ qbit_private_remote_config }}/{{ qbit_ovpn_config }}"
|
|
mode: '664'
|
|
become: true
|