mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-08-29 15:06:26 +02:00
Shorted maintenance- to maint-
This commit is contained in:
37
roles/maint-docker-heal/tasks/main.yml
Normal file
37
roles/maint-docker-heal/tasks/main.yml
Normal file
@@ -0,0 +1,37 @@
|
||||
- name: "create {{heal_docker}}"
|
||||
file:
|
||||
path: "{{heal_docker}}"
|
||||
state: directory
|
||||
mode: 0755
|
||||
when: run_once_heal_docker is not defined
|
||||
|
||||
- name: create maint-docker-heal.py
|
||||
copy:
|
||||
src: maint-docker-heal.py
|
||||
dest: "{{heal_docker}}maint-docker-heal.py"
|
||||
notify: restart maint-docker-heal.cymais.service
|
||||
when: run_once_heal_docker is not defined
|
||||
|
||||
- name: create maint-docker-heal.cymais.service
|
||||
template:
|
||||
src: maint-docker-heal.service.j2
|
||||
dest: /etc/systemd/system/maint-docker-heal.cymais.service
|
||||
notify: restart maint-docker-heal.cymais.service
|
||||
when: run_once_heal_docker is not defined
|
||||
|
||||
- name: set service_name to the name of the current role
|
||||
set_fact:
|
||||
service_name: "{{ role_name }}"
|
||||
when: run_once_heal_docker is not defined
|
||||
|
||||
- name: "include role for generic-timer for {{service_name}}"
|
||||
include_role:
|
||||
name: generic-timer
|
||||
vars:
|
||||
on_calendar: "{{on_calendar_heal_docker}}"
|
||||
when: run_once_heal_docker is not defined
|
||||
|
||||
- name: run the heal_docker tasks once
|
||||
set_fact:
|
||||
run_once_heal_docker: true
|
||||
when: run_once_heal_docker is not defined
|
Reference in New Issue
Block a user