mirror of
https://github.com/FAUSheppy/no-secrets-athq-ansible
synced 2026-06-19 23:42:37 +02:00
initial: no secrets
This commit is contained in:
@@ -0,0 +1,215 @@
|
||||
- include_vars: services.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-config.json.j2
|
||||
dest: /data/async-icinga/config.json
|
||||
notify:
|
||||
- reload async icinga settings
|
||||
|
||||
- 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
|
||||
- atlantis-hub
|
||||
- grafana
|
||||
- event-dispatcher
|
||||
#- reactive-resume
|
||||
- hedgedoc
|
||||
- atlantis-verify
|
||||
- soundlib-interface
|
||||
- python-flask-picture-factory
|
||||
- money-balancer
|
||||
- atlantis-web-check
|
||||
- gotify
|
||||
|
||||
- name: Copy AtlantisHub config
|
||||
copy:
|
||||
src: "atlantis-hub-content/config.yaml"
|
||||
dest: "/data/atlantis-hub/config.yaml"
|
||||
notify: restart hub
|
||||
|
||||
- name: Create AtlantisHubDirectories
|
||||
file:
|
||||
name: "/data/atlantis-hub/{{ item }}"
|
||||
state: directory
|
||||
with_items:
|
||||
- static-icons
|
||||
- instance
|
||||
- static-cache
|
||||
|
||||
- name: Copy AtlantisHub static icons
|
||||
copy:
|
||||
src: "atlantis-hub-content/static-icons/"
|
||||
dest: "/data/atlantis-hub/static-icons/"
|
||||
|
||||
- name: Copy AtlantisHub static icons
|
||||
template:
|
||||
src: "grafana.ini"
|
||||
dest: "/data/grafana/grafana.ini"
|
||||
|
||||
- name: Create compose directories
|
||||
file:
|
||||
name: "/opt/{{ item }}"
|
||||
state: directory
|
||||
with_items:
|
||||
- athq-landing
|
||||
- grafana
|
||||
- potaris
|
||||
- sector32
|
||||
- async-icinga
|
||||
- tmnf-replay-server
|
||||
- atlantis-hub
|
||||
- grafana
|
||||
- event-dispatcher
|
||||
- tor
|
||||
#- reactive-resume
|
||||
- hedgedoc
|
||||
- atlantis-verify
|
||||
- soundlib-interface
|
||||
- python-flask-picture-factory
|
||||
- money-balancer
|
||||
- atlantis-web-check
|
||||
- gotify
|
||||
|
||||
- name: Copy compose templates
|
||||
template:
|
||||
src: "{{ item }}.yaml"
|
||||
dest: "/opt/{{ item }}/"
|
||||
with_items:
|
||||
- athq-landing
|
||||
- grafana
|
||||
- potaris
|
||||
- sector32
|
||||
- async-icinga
|
||||
- tmnf-replay-server
|
||||
- atlantis-hub
|
||||
- grafana
|
||||
- event-dispatcher
|
||||
- tor
|
||||
- hedgedoc
|
||||
- atlantis-verify
|
||||
- soundlib-interface
|
||||
- python-flask-picture-factory
|
||||
- money-balancer
|
||||
- atlantis-web-check
|
||||
- gotify
|
||||
|
||||
- name: Log into private registry
|
||||
docker_login:
|
||||
registry: registry.atlantishq.de
|
||||
username: docker
|
||||
password: ""
|
||||
|
||||
- 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
|
||||
- atlantis-hub
|
||||
- grafana
|
||||
- event-dispatcher
|
||||
- tor
|
||||
- hedgedoc
|
||||
- atlantis-verify
|
||||
- soundlib-interface
|
||||
- python-flask-picture-factory
|
||||
- money-balancer
|
||||
- atlantis-web-check
|
||||
- gotify
|
||||
|
||||
- name: OAuth2Proxy directories
|
||||
file:
|
||||
path: "/opt/oauth2proxy/{{ item }}/"
|
||||
state: directory
|
||||
recurse: yes
|
||||
with_items:
|
||||
- tmnf-replay-server
|
||||
- atlantis-hub
|
||||
- grafana
|
||||
- async-icinga
|
||||
- atlantis-verify
|
||||
- soundlib-interface
|
||||
- python-flask-picture-factory
|
||||
#- reactive-resume
|
||||
- money-balancer
|
||||
- atlantis-web-check
|
||||
|
||||
- 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
|
||||
- atlantis-hub
|
||||
- grafana
|
||||
- async-icinga
|
||||
- atlantis-verify
|
||||
- soundlib-interface
|
||||
- python-flask-picture-factory
|
||||
#- reactive-resume
|
||||
- money-balancer
|
||||
- atlantis-web-check
|
||||
|
||||
- name: Deploy OAuth2Proxy
|
||||
community.docker.docker_compose:
|
||||
project_src: /opt/oauth2proxy/{{ item }}/
|
||||
pull: true
|
||||
with_items:
|
||||
- tmnf-replay-server
|
||||
- atlantis-hub
|
||||
- grafana
|
||||
- async-icinga
|
||||
- atlantis-verify
|
||||
- soundlib-interface
|
||||
- python-flask-picture-factory
|
||||
#- reactive-resume
|
||||
- money-balancer
|
||||
- atlantis-web-check
|
||||
Reference in New Issue
Block a user