mirror of
https://github.com/FAUSheppy/no-secrets-athq-ansible
synced 2025-12-10 06:18:33 +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/"
|
||||
|
||||
Reference in New Issue
Block a user