mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-08-29 23:08:06 +02:00
Added .cymais.service suffix to make cymais files more visible
This commit is contained in:
@@ -40,8 +40,8 @@ waiting_time=600
|
||||
blocker_running=True
|
||||
while blocker_running:
|
||||
try:
|
||||
bash("systemctl is-active --quiet backup-docker-to-local.service")
|
||||
bash("systemctl is-active --quiet update-docker.service")
|
||||
bash("systemctl is-active --quiet backup-docker-to-local.cymais.service")
|
||||
bash("systemctl is-active --quiet update-docker.cymais.service")
|
||||
print("backup is running.")
|
||||
print("trying again in " + str(waiting_time) + " seconds.")
|
||||
time.sleep(waiting_time)
|
||||
|
@@ -1,4 +1,4 @@
|
||||
- name: "reload heal-docker.service"
|
||||
- name: "reload heal-docker.cymais.service"
|
||||
systemd:
|
||||
name: heal-docker.service
|
||||
name: heal-docker.cymais.service
|
||||
daemon_reload: yes
|
||||
|
@@ -11,11 +11,11 @@
|
||||
dest: "{{heal_docker}}heal-docker.py"
|
||||
when: run_once_heal_docker is not defined
|
||||
|
||||
- name: create heal-docker.service
|
||||
- name: create heal-docker.cymais.service
|
||||
template:
|
||||
src: heal-docker.service.j2
|
||||
dest: /etc/systemd/system/heal-docker.service
|
||||
notify: reload heal-docker.service
|
||||
dest: /etc/systemd/system/heal-docker.cymais.service
|
||||
notify: reload heal-docker.cymais.service
|
||||
when: run_once_heal_docker is not defined
|
||||
|
||||
- name: set service_name to the name of the current role
|
||||
|
@@ -1,6 +1,6 @@
|
||||
[Unit]
|
||||
Description=restart unhealthy docker containers
|
||||
OnFailure=systemd-notifier@%n.service
|
||||
OnFailure=systemd-notifier.cymais@%n.service
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
|
Reference in New Issue
Block a user