Fixed gluetun role directory structure

This commit is contained in:
Mike Wilson
2023-02-05 18:03:21 -05:00
parent 3984421380
commit 901199d2b7
2 changed files with 0 additions and 0 deletions

View File

@@ -1,21 +0,0 @@
- name: Create install directory
file:
path: "{{ install_directory }}/{{ role_name }}"
state: directory
owner: "{{ docker_user }}"
mode: "{{ docker_compose_directory_mask }}"
become: true
- name: Copy docker-compose file to destination
template:
src: docker-compose.yml
dest: "{{ install_directory }}/{{ role_name }}/docker-compose.yml"
mode: "{{ docker_compose_file_mask }}"
validate: docker-compose -f %s config
become: true
- name: Start docker container
community.docker.docker_compose:
project_src: "{{ install_directory }}/{{ role_name }}"
pull: true
remove_orphans: yes

View File

@@ -1,31 +0,0 @@
version: "3"
networks:
traefik:
external: true
services:
gluetun:
container_name: gluetun
image: qmcgaw/gluetun
restart: unless-stopped
cap_add:
- NET_ADMIN
networks:
- traefik
ports:
- 8888:8888 # HTTP Proxy
devices:
- /dev/net/tun:/dev/net/tun
environment:
VPN_TYPE: wireguard
VPN_SERVICE_PROVIDER: mullvad
WIREGUARD_PRIVATE_KEY: "{{ wireguard_private_key }}"
WIREGUARD_ADDRESSES: 10.65.71.171/32
SERVER_CITIES: Ashburn VA
DOT: "off"
DNS_ADRESS: 10.64.0.1
TZ: "{{ timezone }}"
HTTPPROXY: "on"
HTTPPROXY_USER: httpproxy
HTTPPROXY_PASSWORD: httpproxy