mirror of
https://github.com/mtan93/Apps-Community.git
synced 2026-03-08 05:31:59 +00:00
Set puid,pgid as global attrib
This commit is contained in:
@@ -24,6 +24,8 @@
|
|||||||
dnsserver2: '84.200.69.80'
|
dnsserver2: '84.200.69.80'
|
||||||
dnsserver3: '37.235.1.174'
|
dnsserver3: '37.235.1.174'
|
||||||
dnsserver4: '185.121.177.177'
|
dnsserver4: '185.121.177.177'
|
||||||
|
puid: '1000'
|
||||||
|
pgid: '1000'
|
||||||
image: 'binhex/arch-qbittorrentvpn:latest'
|
image: 'binhex/arch-qbittorrentvpn:latest'
|
||||||
|
|
||||||
# CORE (MANDATORY) #############################################################
|
# CORE (MANDATORY) #############################################################
|
||||||
@@ -56,8 +58,8 @@
|
|||||||
- name: 'Setting PG ENV'
|
- name: 'Setting PG ENV'
|
||||||
set_fact:
|
set_fact:
|
||||||
pg_env:
|
pg_env:
|
||||||
PUID: '1000'
|
PUID: '{{puid}}'
|
||||||
PGID: '1000'
|
PGID: '{{pgid}}'
|
||||||
UMASK: '000'
|
UMASK: '000'
|
||||||
VPN_ENABLED: 'no'
|
VPN_ENABLED: 'no'
|
||||||
VPN_USER: 'username'
|
VPN_USER: 'username'
|
||||||
@@ -149,7 +151,7 @@
|
|||||||
- name: Initialize opvn
|
- name: Initialize opvn
|
||||||
block:
|
block:
|
||||||
- name: Create opvn folder
|
- name: Create opvn folder
|
||||||
shell: mkdir /opt/appdata/{{pgrole}}/openvpn && touch mkdir /opt/appdata/{{pgrole}}/openvpn/OPVN\ files\ go\ here > && chown -R {{PUID}}:{{PGID}} /opt/appdata/{{pgrole}}/openvpn
|
shell: mkdir /opt/appdata/{{pgrole}}/openvpn && touch mkdir /opt/appdata/{{pgrole}}/openvpn/OPVN\ files\ go\ here > && chown -R {{puid}}:{{pgid}} /opt/appdata/{{pgrole}}/openvpn
|
||||||
when: not ovpncheck.stat.exists
|
when: not ovpncheck.stat.exists
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user