mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-08-29 15:06:26 +02:00
optimized variable names
This commit is contained in:
@@ -3,16 +3,16 @@
|
||||
name: python-requests
|
||||
state: present
|
||||
|
||||
- name: "create {{ nginx_health_check_folder }}"
|
||||
- name: "create {{ health_nginx_folder }}"
|
||||
file:
|
||||
path: "{{ nginx_health_check_folder }}"
|
||||
path: "{{ health_nginx_folder }}"
|
||||
state: directory
|
||||
mode: 0755
|
||||
|
||||
- name: create health-nginx.py
|
||||
copy:
|
||||
src: health-nginx.py
|
||||
dest: "{{ nginx_health_check_folder }}health-nginx.py"
|
||||
dest: "{{ health_nginx_folder }}health-nginx.py"
|
||||
|
||||
- name: create health-nginx.service
|
||||
template:
|
||||
|
@@ -4,4 +4,4 @@ OnFailure=systemd-notifier@%n.service
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
ExecStart=/usr/bin/python3 {{ nginx_health_check_folder }}health-nginx.py
|
||||
ExecStart=/usr/bin/python3 {{ health_nginx_folder }}health-nginx.py
|
||||
|
@@ -2,7 +2,7 @@
|
||||
Description=starts health-nginx.service
|
||||
|
||||
[Timer]
|
||||
OnCalendar={{ on_calendar_nginx_health_check }}
|
||||
OnCalendar={{ on_calendar_health_nginx }}
|
||||
RandomizedDelaySec={{ randomized_delay_sec }}
|
||||
Persistent=false
|
||||
|
||||
|
@@ -1 +1 @@
|
||||
nginx_health_check_folder: "{{ path_administrator_scripts }}health-nginx/"
|
||||
health_nginx_folder: "{{ path_administrator_scripts }}health-nginx/"
|
||||
|
Reference in New Issue
Block a user