Added new openvpn config

Signed-off-by: TuDatTr <tuan-dat.tran@tudattr.dev>
pull/1/head
TuDatTr 2023-05-08 09:40:58 +02:00
parent 76a5ef1781
commit bf35d9cb82
4 changed files with 21 additions and 2 deletions

View File

@ -6,7 +6,7 @@ timezone: Europe/Berlin
rclone_config: "/root/.config/rclone/"
puid: 1000
pgid: 1000
pk_path: "/media/veracrypt1/genesis"
pk_path: "/mnt/veracrypt1/genesis"
local_domain: borg.land
local_subdomains: "@"
@ -332,7 +332,8 @@ bin_upload: "{{ docker_data_dir }}/{{bin_host}}/upload"
qbit_port: "8082"
qbit_host: "qbit"
qbit_config: "templates/aya01/qbittorrentvpn/config"
qbit_ovpn_config: "openvpn/ae.protonvpn.net.udp.ovpn"
qbit_old_ovpn_config: "openvpn/ae.protonvpn.net.udp.ovpn"
qbit_ovpn_config: "openvpn/hu.protonvpn.net.udp.ovpn"
qbit_remote_config: "{{ docker_dir }}/{{ qbit_host }}/config"
qbit_downloads: "{{ arr_downloads }}"

View File

@ -12,6 +12,12 @@
- "{{ 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 }}"

View File

@ -14,6 +14,12 @@
# tags:
# - reload_compose
- name: Copy the compose file
template:
src: templates/{{ inventory_hostname }}/compose.yaml
dest: "{{ docker_compose_dir }}/compose.yaml"
register: compose
- include_tasks: "{{ inventory_hostname }}_compose.yml"
tags:
- reload_compose

View File

@ -12,6 +12,12 @@
- "{{ 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-config
template:
owner: "{{ puid }}"