mirror of
https://github.com/FAUSheppy/no-secrets-athq-ansible
synced 2025-12-10 07:48:33 +01:00
fix: various web1 fixes
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
name:
|
||||
- itsdangerous==2.0.1
|
||||
- flask
|
||||
- flask-login
|
||||
- flask-oidc
|
||||
- Flask-SQLAlchemy
|
||||
- MarkupSafe
|
||||
@@ -42,6 +43,13 @@
|
||||
- simple-log-server
|
||||
- soundlib-interface
|
||||
|
||||
- name: SLS Config
|
||||
copy:
|
||||
src: sls_config.py
|
||||
dest: /var/www/simple-log-server/config.py
|
||||
owner: www-data
|
||||
group: www-data
|
||||
|
||||
- name: Deploy OIDC config (client secrets)
|
||||
template:
|
||||
src: oidc_client_secrets.json.j2
|
||||
@@ -53,12 +61,27 @@
|
||||
- simple-log-server
|
||||
- soundlib-interface
|
||||
|
||||
- name: Systemd Units
|
||||
- name: Template Systemd Units
|
||||
template:
|
||||
src: "waitress-systemd-unit.j2"
|
||||
dest: "/etc/systemd/user/{{ item.name }}.service"
|
||||
dest: "/etc/systemd/system/{{ item.name }}.service"
|
||||
with_items:
|
||||
- { name : "image-factory", path : "/var/www/python-flask-picture-factory", port : 5000 }
|
||||
- { name : "serien-ampel", path : "/var/www/serien-ampel", port : 5001 }
|
||||
- { name : "simple-log-server", path : "/var/www/simple-log-service", port : 5002 }
|
||||
- { name : "simple-log-server", path : "/var/www/simple-log-server", port : 5002 }
|
||||
- { name : "soundlib", path : "/var/www/soundlib-interface", port : 5003 }
|
||||
notify:
|
||||
- daemon reload
|
||||
|
||||
- meta: flush_handlers
|
||||
|
||||
- name: Enable and Start Systemd Units
|
||||
systemd:
|
||||
name: "{{ item }}"
|
||||
enabled: yes
|
||||
state: started
|
||||
with_items:
|
||||
- image-factory
|
||||
- serien-ampel
|
||||
- simple-log-server
|
||||
- soundlib
|
||||
|
||||
Reference in New Issue
Block a user