From 655b4e5c605827ecd4cad59888f1aae79097c23e Mon Sep 17 00:00:00 2001 From: "Kevin Veen-Birkenbach [aka. Frantz]" Date: Wed, 16 Mar 2022 07:47:21 +0100 Subject: [PATCH] Removed docker-wireguard --- roles/docker-wireguard/README.md | 7 ----- roles/docker-wireguard/meta/main.yml | 2 -- roles/docker-wireguard/tasks/main.yml | 41 --------------------------- 3 files changed, 50 deletions(-) delete mode 100644 roles/docker-wireguard/README.md delete mode 100644 roles/docker-wireguard/meta/main.yml delete mode 100644 roles/docker-wireguard/tasks/main.yml diff --git a/roles/docker-wireguard/README.md b/roles/docker-wireguard/README.md deleted file mode 100644 index a4c4015c..00000000 --- a/roles/docker-wireguard/README.md +++ /dev/null @@ -1,7 +0,0 @@ -# Role Wireguard -This role is not fully implemented yet. Instead use the role native-wireguard. -## Preparation -Execute -``bash -ansible-galaxy collection install community.general -`` diff --git a/roles/docker-wireguard/meta/main.yml b/roles/docker-wireguard/meta/main.yml deleted file mode 100644 index fb4d4f7b..00000000 --- a/roles/docker-wireguard/meta/main.yml +++ /dev/null @@ -1,2 +0,0 @@ -dependencies: -- native-docker-reverse-proxy diff --git a/roles/docker-wireguard/tasks/main.yml b/roles/docker-wireguard/tasks/main.yml deleted file mode 100644 index 1fcdb901..00000000 --- a/roles/docker-wireguard/tasks/main.yml +++ /dev/null @@ -1,41 +0,0 @@ ---- -- name: configure {{domain}}.conf - template: src=roles/native-docker-reverse-proxy/templates/domain.conf.j2 dest=/etc/nginx/conf.d/{{domain}}.conf - notify: restart nginx - -- name: recieve {{domain}} certificate - command: certbot certonly --agree-tos --email {{administrator_email}} --non-interactive --webroot -w /var/lib/letsencrypt/ -d {{domain}} - -- sysctl: - name: net.ipv4.conf.all.src_valid_mark - value: 1 - sysctl_set: yes - -- name: "setup wireguard" - docker_compose: - project_name: wireguard - definition: - application: - image: linuxserver/wireguard - restart: always - ports: - - "127.0.0.1:{{http_port}}:80" - cap_add: - - NET_ADMIN - - SYS_MODULE - environment: - - PUID=1000 - - PGID=1000 - - TZ=Europe/London - - SERVERURL={{domain}} - - SERVERPORT=51820 #optional - - PEERS=1 #optional - - PEERDNS=auto #optional - - INTERNAL_SUBNET=10.13.13.0 #optional - - ALLOWEDIPS=192.168.1.0/24,192.168.2.0/24 #optional - volumes: - - /path/to/appdata/config:/config - - /lib/modules:/lib/modules - ports: - - 51820:51820/udp - restart: unless-stopped