Skip to content
Snippets Groups Projects
Commit 403d58b1 authored by Jens Steidl's avatar Jens Steidl :baby_chick:
Browse files

chore: updated tasks for nfs monitoring service

parent 2e289a96
No related branches found
No related tags found
No related merge requests found
Pipeline #10535 failed
......@@ -8,22 +8,34 @@
group: "root"
- name: install NFS monitoring services
ansible.builtin.template:
src: "usr/local/lib/systemd/system/{{ item }}.j2"
dest: "/usr/local/lib/systemd/system/{{ item }}"
mode: "0600"
owner: "root"
group: "root"
loop:
- "nfs_timeout_notification.service"
- "nfs_timeout_notification.service.sh"
notify: daemon-reload
block:
- name: install NFS monitoring services (1/3) - copy service script
ansible.builtin.template:
src: "usr/local/bin/{{ item }}.j2"
dest: "/usr/local/bin/{{ item }}"
mode: "0600"
owner: "root"
group: "root"
loop:
- "nfs_timeout_notification.service.sh"
- name: install NFS monitoring services (2/3) - copy service unit
ansible.builtin.template:
src: "usr/local/lib/systemd/system/{{ item }}.j2"
dest: "/usr/local/lib/systemd/system/{{ item }}"
mode: "0600"
owner: "root"
group: "root"
loop:
- "nfs_timeout_notification.service"
notify: daemon-reload
- name: enable NFS monitoring services
ansible.builtin.systemd_service:
name: "{{ item.name }}"
enabled: "{{ item.enabled | default(true) }}"
state: "{{ item.state | default('started') }}"
daemon_reload: true
loop:
- name: "nfs_timeout_notification.service"
- name: install NFS monitoring services (3/3) - enable service
ansible.builtin.systemd_service:
name: "{{ item.name }}"
enabled: "{{ item.enabled | default(true) }}"
state: "{{ item.state | default('started') }}"
daemon_reload: true
loop:
- name: "nfs_timeout_notification.service"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment