mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2024-12-23 18:55:03 +01:00
24 lines
659 B
YAML
24 lines
659 B
YAML
- name: "create {{heal_docker}}"
|
|
file:
|
|
path: "{{heal_docker}}"
|
|
state: directory
|
|
mode: 0755
|
|
|
|
- name: create heal-docker.py
|
|
copy:
|
|
src: heal-docker.py
|
|
dest: "{{heal_docker}}heal-docker.py"
|
|
|
|
- name: create heal-docker.service
|
|
template:
|
|
src: heal-docker.service.j2
|
|
dest: /etc/systemd/system/heal-docker.service
|
|
notify: reload heal-docker.service
|
|
|
|
- name: create heal-docker.timer
|
|
template:
|
|
src: heal-docker.timer.j2
|
|
dest: "/etc/systemd/system/heal-docker.timer"
|
|
register: heal_docker_timer
|
|
changed_when: heal_docker_timer.changed or activate_all_timers | default(false) | bool
|
|
notify: restart heal-docker.timer |