mirror of
https://github.com/FAUSheppy/no-secrets-athq-ansible
synced 2025-12-10 08:28:34 +01:00
feat: icinga2 web oauth2
This commit is contained in:
@@ -1,6 +1,9 @@
|
||||
- name: Install Dependecies
|
||||
apt:
|
||||
name: git
|
||||
pkg:
|
||||
- git
|
||||
- docker-compose
|
||||
- nginx
|
||||
state: present
|
||||
|
||||
- name: Clone Passive Monitoring
|
||||
@@ -129,3 +132,36 @@
|
||||
line: '"include /etc/monitoring-tools/commands.d/signal-notify.conf"'
|
||||
notify:
|
||||
- restart icinga
|
||||
|
||||
- name: OAuth2Proxy directories
|
||||
file:
|
||||
path: "/opt/oauth2proxy/{{ item }}/"
|
||||
state: directory
|
||||
recurse: yes
|
||||
with_items:
|
||||
- icinga
|
||||
|
||||
- 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:
|
||||
- icinga
|
||||
|
||||
- name: Deploy OAuth2Proxy
|
||||
community.docker.docker_compose:
|
||||
project_src: /opt/oauth2proxy/{{ item }}/
|
||||
pull: true
|
||||
with_items:
|
||||
- icinga
|
||||
|
||||
- name: Copy icinga web nginx conf
|
||||
copy:
|
||||
src: icinga-nginx.conf
|
||||
dest: /etc/nginx/sites-enabled/icinga.conf
|
||||
mode: 0755
|
||||
notify:
|
||||
- restart nginx
|
||||
|
||||
Reference in New Issue
Block a user