fix: openvpn config

This commit is contained in:
2024-07-20 12:21:59 +00:00
parent 708a996baf
commit 928e905fd7
3 changed files with 16 additions and 14 deletions

View File

@@ -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/"