mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2024-11-29 16:01:04 +01:00
23 lines
701 B
YAML
23 lines
701 B
YAML
- name: "create {{health_docker_folder}}"
|
|
file:
|
|
path: "{{health_docker_folder}}"
|
|
state: directory
|
|
mode: 0755
|
|
|
|
- name: create health-docker.sh
|
|
copy:
|
|
src: health-docker.sh
|
|
dest: "{{health_docker_folder}}health-docker.sh"
|
|
|
|
- name: create health-docker.service
|
|
template: src=health-docker.service.j2 dest=/etc/systemd/system/health-docker.service
|
|
notify: reload health-docker.service
|
|
|
|
- name: create health-docker.timer
|
|
template:
|
|
src: health-docker.timer.j2
|
|
dest: "/etc/systemd/system/health-docker.timer"
|
|
register: health_docker_timer
|
|
changed_when: health_docker_timer.changed or activate_all_timers | default(false) | bool
|
|
notify: restart health-docker.timer
|