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,6 +8,19 @@ ...@@ -8,6 +8,19 @@
group: "root" group: "root"
- name: install NFS monitoring services - name: install NFS monitoring services
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: ansible.builtin.template:
src: "usr/local/lib/systemd/system/{{ item }}.j2" src: "usr/local/lib/systemd/system/{{ item }}.j2"
dest: "/usr/local/lib/systemd/system/{{ item }}" dest: "/usr/local/lib/systemd/system/{{ item }}"
...@@ -16,10 +29,9 @@ ...@@ -16,10 +29,9 @@
group: "root" group: "root"
loop: loop:
- "nfs_timeout_notification.service" - "nfs_timeout_notification.service"
- "nfs_timeout_notification.service.sh"
notify: daemon-reload notify: daemon-reload
- name: enable NFS monitoring services - name: install NFS monitoring services (3/3) - enable service
ansible.builtin.systemd_service: ansible.builtin.systemd_service:
name: "{{ item.name }}" name: "{{ item.name }}"
enabled: "{{ item.enabled | default(true) }}" enabled: "{{ item.enabled | default(true) }}"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment