Files
no-secrets-athq-ansible/roles/docker-deployments/tasks/main.yaml
2023-01-05 17:56:56 +01:00

68 lines
1.3 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 Service (static)
template:
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
- grafana
- potaris-en
- potaris
- sector32
- async-icinga
- name: Copy compose templates
template:
src: "{{ item }}.yaml"
dest: "/opt/{{ item }}/"
with_items:
- athq-landing
- grafana
- potaris-en
- potaris
- sector32
- async-icinga
- 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 }}/"
files:
- "{{ item }}.yaml"
with_items:
- athq-landing
- grafana
- potaris-en
- potaris
- sector32
- async-icinga