mirror of
https://github.com/FAUSheppy/no-secrets-athq-ansible
synced 2025-12-06 08:21:36 +01:00
110 lines
2.2 KiB
YAML
110 lines
2.2 KiB
YAML
- name: Create data-dir
|
|
file:
|
|
name: /data/
|
|
state: directory
|
|
|
|
- name: Create opt-dir
|
|
file:
|
|
name: /opt/
|
|
state: directory
|
|
|
|
- name: Async Icinga mount directory
|
|
file:
|
|
name: /data/async-icinga
|
|
state: directory
|
|
|
|
- name: Async Icinga database mount directory
|
|
file:
|
|
name: /data/async-icinga
|
|
state: directory
|
|
|
|
- name: Async Icinga Service (static)
|
|
template:
|
|
src: async-icinga-config.json.j2
|
|
dest: /data/async-icinga/async-icinga-config.json
|
|
notify:
|
|
- reload async icinga settings
|
|
|
|
- name: Async Icinga Service (dynamic from backup file)
|
|
copy:
|
|
src: async-icinga-config-dynamic.json
|
|
dest: /data/async-icinga/
|
|
notify:
|
|
- reload async icinga settings
|
|
|
|
- name: Create data directories
|
|
file:
|
|
name: "/data/{{ item }}/"
|
|
state: directory
|
|
with_items:
|
|
- tmnf-replay-server
|
|
|
|
- name: Create compose directories
|
|
file:
|
|
name: "/opt/{{ item }}"
|
|
state: directory
|
|
with_items:
|
|
- athq-landing
|
|
- grafana
|
|
- potaris
|
|
- sector32
|
|
- async-icinga
|
|
- tmnf-replay-server
|
|
|
|
- name: Copy compose templates
|
|
template:
|
|
src: "{{ item }}.yaml"
|
|
dest: "/opt/{{ item }}/"
|
|
with_items:
|
|
- athq-landing
|
|
- grafana
|
|
- potaris
|
|
- sector32
|
|
- async-icinga
|
|
- tmnf-replay-server
|
|
|
|
- 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/{{ item }}/"
|
|
pull: true
|
|
files:
|
|
- "{{ item }}.yaml"
|
|
with_items:
|
|
- athq-landing
|
|
- grafana
|
|
- potaris
|
|
- sector32
|
|
- async-icinga
|
|
- tmnf-replay-server
|
|
|
|
- name: OAuth2Proxy directories
|
|
file:
|
|
path: "/opt/oauth2proxy/{{ item }}/"
|
|
state: directory
|
|
recurse: yes
|
|
with_items:
|
|
- tmnf-replay-server
|
|
|
|
- name: include services ports
|
|
include_vars: services.yaml
|
|
|
|
- name: Deploy OAuth2Proxy compose files
|
|
template:
|
|
src: oauth-standalone-docker-compose.yaml
|
|
dest: "/opt/oauth2proxy/{{ item }}/docker-compose.yaml"
|
|
with_items:
|
|
- tmnf-replay-server
|
|
|
|
- name: Deploy OAuth2Proxy
|
|
community.docker.docker_compose:
|
|
project_src: /opt/oauth2proxy/{{ item }}/
|
|
pull: true
|
|
with_items:
|
|
- tmnf-replay-server
|