mirror of
https://github.com/FAUSheppy/no-secrets-athq-ansible
synced 2025-12-06 12:41:36 +01:00
feat: services var
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -5,4 +5,3 @@ files/nsca_server.conf
|
|||||||
files/async-icinga-config-dynamic.json
|
files/async-icinga-config-dynamic.json
|
||||||
files/async-icinga-services-dynamic.conf
|
files/async-icinga-services-dynamic.conf
|
||||||
hosts.ini
|
hosts.ini
|
||||||
vars/
|
|
||||||
|
|||||||
@@ -1,3 +1,6 @@
|
|||||||
|
- name: Include service variables
|
||||||
|
include_vars: services.yaml
|
||||||
|
|
||||||
- name: Install python packages
|
- name: Install python packages
|
||||||
pip:
|
pip:
|
||||||
name:
|
name:
|
||||||
@@ -88,7 +91,7 @@
|
|||||||
- { name : "image-factory", path : "/var/www/python-flask-picture-factory" }
|
- { name : "image-factory", path : "/var/www/python-flask-picture-factory" }
|
||||||
- { name : "serien-ampel", path : "/var/www/serien-ampel" }
|
- { name : "serien-ampel", path : "/var/www/serien-ampel" }
|
||||||
- { name : "simple-log-server", path : "/var/www/simple-log-server" }
|
- { name : "simple-log-server", path : "/var/www/simple-log-server" }
|
||||||
- { name : "soundlib", path : "/var/www/soundlib-interface" }
|
- { name : "soundlib", path : "/var/www/soundlib-interface", external_oidc : true }
|
||||||
notify:
|
notify:
|
||||||
- daemon reload
|
- daemon reload
|
||||||
|
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
{% set port = services[item.name].port %}
|
{% set port = services[item.name].port %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% if item.get("oidc") %}
|
{% if item.get("external_oidc") %}
|
||||||
{% set port = port + 1000 %}
|
{% set port = port + 1000 %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
|||||||
9
vars/services.yaml
Normal file
9
vars/services.yaml
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
services:
|
||||||
|
image-factory:
|
||||||
|
port: 5000
|
||||||
|
serien-ampel:
|
||||||
|
port: 5001
|
||||||
|
simple-log-server:
|
||||||
|
port: 5002
|
||||||
|
soundlib:
|
||||||
|
port: 5003
|
||||||
Reference in New Issue
Block a user