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