mirror of
https://github.com/FAUSheppy/no-secrets-athq-ansible
synced 2025-12-06 06: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-services-dynamic.conf
|
||||
hosts.ini
|
||||
vars/
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
- name: Include service variables
|
||||
include_vars: services.yaml
|
||||
|
||||
- name: Install python packages
|
||||
pip:
|
||||
name:
|
||||
@@ -86,9 +89,9 @@
|
||||
dest: "/etc/systemd/system/{{ item.name }}.service"
|
||||
with_items:
|
||||
- { name : "image-factory", path : "/var/www/python-flask-picture-factory" }
|
||||
- { name : "serien-ampel", path : "/var/www/serien-ampel" }
|
||||
- { name : "simple-log-server", path : "/var/www/simple-log-server" }
|
||||
- { name : "soundlib", path : "/var/www/soundlib-interface" }
|
||||
- { name : "serien-ampel", path : "/var/www/serien-ampel" }
|
||||
- { name : "simple-log-server", path : "/var/www/simple-log-server" }
|
||||
- { name : "soundlib", path : "/var/www/soundlib-interface", external_oidc : true }
|
||||
notify:
|
||||
- daemon reload
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
{% set port = services[item.name].port %}
|
||||
{% endif %}
|
||||
|
||||
{% if item.get("oidc") %}
|
||||
{% if item.get("external_oidc") %}
|
||||
{% set port = port + 1000 %}
|
||||
{% 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