first successful test

This commit is contained in:
2025-08-24 19:49:45 -07:00
parent 96906161fd
commit cc24088bbe
9 changed files with 388 additions and 110 deletions

View File

@ -60,6 +60,21 @@
dest: /etc/systemd/system/service_control.service
mode: 0644
- name: video_capture - service timeout helper files
block:
- name: video_capture - create service_timeout.sh
template:
src: service_timeout.sh.j2
dest: "{{ service_control_folder }}/service_timeout.sh"
mode: 0755
- name: video_capture - create service_timeout.service
template:
src: service_timeout.service.j2
dest: /etc/systemd/system/service_timeout.service
mode: 0644
# daemon reload
- name: video_capture - service_control api - daemon reload
systemd:
@ -72,6 +87,11 @@
state: started
enabled: yes
- name: video_capture - service_control api - enable and start service timeoue api
systemd:
name: service_timeout.service
state: started
enabled: yes
###############################################
@ -102,24 +122,27 @@
owner: root
group: root
# - name: service_control_website - template index.php
# template:
# src: index-service_control.php.j2
# dest: "{{ service_control_web_folder }}/html/index.php"
# mode: 0644
#- name: service_control_website - template index.php
# template:
# src: index-service_control.php.j2
# dest: "{{ service_control_web_folder }}/html/index.php"
# mode: 0644
###############################################
# Start service_control_website
###############################################
# https://unix.stackexchange.com/questions/265704/start-stop-a-systemd-service-at-specific-times
# i can create several conflicting services with various timeouts
# https://unix.stackexchange.com/questions/265704/start-stop-a-systemd-service-at-specific-times
# i can create several conflicting services with various timeouts
- name: start service_control_website
when: not refresh_special | bool
block:
- name: set container variables
set_fact:
container_name: "service_control_website"
container_http_port: "8081"
extra_volumes: ""
- name: service_control_website - template config
template: