39 lines
941 B
YAML
39 lines
941 B
YAML
---
|
|
- hosts: storage_nodes
|
|
any_errors_fatal: true
|
|
tasks:
|
|
- assert:
|
|
that:
|
|
- ansible_play_hosts == ansible_play_hosts_all
|
|
|
|
- name: Copy check-fuse-mounts script
|
|
copy:
|
|
owner: root
|
|
group: root
|
|
mode: 0755
|
|
src: "check-fuse-mounts.sh"
|
|
dest: "/usr/local/sbin/check-fuse-mounts.sh"
|
|
|
|
- name: Copy check-fuse-mounts systemd service
|
|
copy:
|
|
owner: root
|
|
group: root
|
|
mode: 0644
|
|
src: "check-fuse-mounts.service"
|
|
dest: "/etc/systemd/system/check-fuse-mounts.service"
|
|
|
|
- name: Copy check-fuse-mounts systemd timer
|
|
copy:
|
|
owner: root
|
|
group: root
|
|
mode: 0644
|
|
src: "check-fuse-mounts.timer"
|
|
dest: "/etc/systemd/system/check-fuse-mounts.timer"
|
|
|
|
- name: Enable check-fuse-mounts timer
|
|
systemd:
|
|
name: check-fuse-mounts.timer
|
|
daemon_reload: true
|
|
state: started
|
|
enabled: true
|