mirror of
https://github.com/FAUSheppy/no-secrets-athq-ansible
synced 2025-12-06 09:01:38 +01:00
fix: openvpn config
This commit is contained in:
@@ -12,13 +12,21 @@
|
||||
with_items:
|
||||
- atlantishq
|
||||
|
||||
- name: Create OpenVPN config dirs
|
||||
file:
|
||||
dest: "/etc/openvpn/{{ item.name }}-{{ item.dev_type }}/"
|
||||
state: directory
|
||||
with_items:
|
||||
- { "name" : "atlantishq", "dev_type" : "tap", "port" : 7012, "proto" : "tcp" }
|
||||
- { "name" : "atlantishq", "dev_type" : "tun", "port" : 7013, "proto" : "tcp" }
|
||||
|
||||
- name: Deploy OpenVPN configs
|
||||
template:
|
||||
src: "{{ item }}.conf"
|
||||
src: "{{ item.name }}.conf"
|
||||
dest: "/etc/openvpn/{{ item.name }}-{{ item.dev_type }}/{{ item.name }}-{{ item.dev_type }}.conf"
|
||||
with_items:
|
||||
- { "name" : "atlantishq", "dev_type" : "tap", "port" : 7012 }
|
||||
- { "name" : "atlantishq", "dev_type" : "tun", "port" : 7013 }
|
||||
- { "name" : "atlantishq", "dev_type" : "tap", "port" : 7012, "proto" : "tcp" }
|
||||
- { "name" : "atlantishq", "dev_type" : "tun", "port" : 7013, "proto" : "tcp" }
|
||||
|
||||
- name: Openvpn Mgnt interface Pass file
|
||||
copy:
|
||||
@@ -60,12 +68,6 @@
|
||||
src: "certificate-manager.yaml"
|
||||
dest: "/opt/certificate-manager/"
|
||||
|
||||
- name: Log into private registry
|
||||
docker_login:
|
||||
registry: registry.atlantishq.de
|
||||
username: docker
|
||||
password: HISTORY_PURGED_SECRET
|
||||
|
||||
- name: Deploy compose templates
|
||||
community.docker.docker_compose:
|
||||
project_src: "/opt/certificate-manager/"
|
||||
|
||||
@@ -2,12 +2,12 @@ server 172.16.1.0 255.255.255.0
|
||||
#server-ipv6 fd2a:aef:608:1::/64
|
||||
|
||||
dev athq_sheppyvpn
|
||||
dev-type {{ dev_type }}
|
||||
dev-type {{ item.dev_type }}
|
||||
|
||||
proto {{ proto }}
|
||||
port {{ port }}
|
||||
proto {{ item.proto }}
|
||||
port {{ item.port }}
|
||||
|
||||
{% if dev_type == "tap" %}
|
||||
{% if item.dev_type == "tap" %}
|
||||
topology subnet
|
||||
client-to-client
|
||||
{% endif %}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
certificate-manager:
|
||||
image: registry.atlantishq.de/certificate-manager:latest
|
||||
image: harbor-registry.atlantishq.de/atlantishq/certificate-manager:latest
|
||||
restart: always
|
||||
ports:
|
||||
- 6000:5000
|
||||
|
||||
Reference in New Issue
Block a user