mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-08-29 15:06:26 +02:00
Another big round of refactoring and cleaning...
This commit is contained in:
37
roles/sys-rpr-docker-soft/tasks/main.yml
Normal file
37
roles/sys-rpr-docker-soft/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 sys-rpr-docker-soft.py
|
||||
copy:
|
||||
src: sys-rpr-docker-soft.py
|
||||
dest: "{{heal_docker}}sys-rpr-docker-soft.py"
|
||||
notify: restart sys-rpr-docker-soft.cymais.service
|
||||
when: run_once_heal_docker is not defined
|
||||
|
||||
- name: create sys-rpr-docker-soft.cymais.service
|
||||
template:
|
||||
src: sys-rpr-docker-soft.service.j2
|
||||
dest: /etc/systemd/system/sys-rpr-docker-soft.cymais.service
|
||||
notify: restart sys-rpr-docker-soft.cymais.service
|
||||
when: run_once_heal_docker is not defined
|
||||
|
||||
- name: "set 'service_name' to '{{ role_name }}'"
|
||||
set_fact:
|
||||
service_name: "{{ role_name }}"
|
||||
when: run_once_heal_docker is not defined
|
||||
|
||||
- name: "include role for sys-timer for {{service_name}}"
|
||||
include_role:
|
||||
name: sys-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