mirror of
https://github.com/FAUSheppy/no-secrets-athq-ansible
synced 2025-12-10 04:18:34 +01:00
wip: async icinga & docker compose
This commit is contained in:
@@ -1,25 +1,61 @@
|
||||
- name: Create data-dir
|
||||
file:
|
||||
name: /data/
|
||||
state: directory
|
||||
|
||||
- name: Create opt-dir
|
||||
file:
|
||||
name: /opt/
|
||||
state: directory
|
||||
|
||||
- name: Copy compose templates
|
||||
- name: Async Icinga mount directory
|
||||
file:
|
||||
name: /data/async-icinga
|
||||
state: directory
|
||||
|
||||
- name: Async Icinga Service (static)
|
||||
template:
|
||||
src: {{ item }}
|
||||
dest: /opt/
|
||||
src: async-icinga-config.json.j2
|
||||
dest: /data/async-icinga/
|
||||
|
||||
- name: Async Icinga Service (dynamic from backup file)
|
||||
copy:
|
||||
src: async-icinga-config-dynamic.json
|
||||
dest: /data/async-icinga/
|
||||
|
||||
- name: Create compose directories
|
||||
file:
|
||||
name: "/opt/{{ item }}"
|
||||
state: directory
|
||||
with_items:
|
||||
- athq-landing.yaml
|
||||
- grafana.yaml
|
||||
- potaris-en.yaml
|
||||
- potaris.yaml
|
||||
- sector32.yaml
|
||||
- athq-landing
|
||||
- grafana
|
||||
- potaris-en
|
||||
- potaris
|
||||
- sector32
|
||||
- async-icinga
|
||||
|
||||
- name: Copy compose templates
|
||||
compose:
|
||||
TODO
|
||||
template:
|
||||
src: "{{ item }}.yaml"
|
||||
dest: "/opt/{{ item }}/"
|
||||
with_items:
|
||||
- athq-landing.yaml
|
||||
- grafana.yaml
|
||||
- potaris-en.yaml
|
||||
- potaris.yaml
|
||||
- sector32.yaml
|
||||
- athq-landing
|
||||
- grafana
|
||||
- potaris-en
|
||||
- potaris
|
||||
- sector32
|
||||
- async-icinga
|
||||
|
||||
- name: Deploy compose templates
|
||||
community.docker.docker_compose:
|
||||
project_src: "/opt/{{ item }}/"
|
||||
files:
|
||||
- "{{ item }}.yaml"
|
||||
with_items:
|
||||
- athq-landing
|
||||
- grafana
|
||||
- potaris-en
|
||||
- potaris
|
||||
- sector32
|
||||
- async-icinga
|
||||
|
||||
Reference in New Issue
Block a user