Files
ansible/qbit_private.yml
TuDatTr bf35d9cb82 Added new openvpn config
Signed-off-by: TuDatTr <tuan-dat.tran@tudattr.dev>
2023-05-08 09:40:58 +02:00

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