feat: icinga2 web oauth2

This commit is contained in:
2023-06-27 15:50:26 +00:00
parent b001af119b
commit d2a589fee6
4 changed files with 83 additions and 1 deletions

View File

@@ -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