Skip to content

Commit

Permalink
issue #30 - be more flexible regarding the local path for plugin or c…
Browse files Browse the repository at this point in the history
…heck files
  • Loading branch information
zerwes committed Aug 26, 2024
1 parent 65f125f commit 52b3618
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,10 +67,17 @@

- name: copy check_mk plugins
ansible.builtin.copy:
src: "{{ item }}"
src: "{{ lookup('ansible.builtin.first_found', _firstfound) }}"
dest: "{{ opn_check_mk_lib_dir }}/plugins/{{ item }}"
mode: 0700
with_items: "{{ opn_check_mk_plugins }}"
vars:
_firstfound:
paths:
- files
files:
- "{{ item }}"
- "{{ item | basename }}"
when: opn_install_check_mk

- name: create check_mk local checks cache dirs
Expand All @@ -85,10 +92,17 @@

- name: copy check_mk local checks
ansible.builtin.copy:
src: "{{ item }}"
src: "{{ lookup('ansible.builtin.first_found', _firstfound) }}"
dest: "{{ opn_check_mk_lib_dir }}/local/{{ item }}"
mode: 0700
with_items: "{{ opn_check_mk_local_checks }}"
vars:
_firstfound:
paths:
- files
files:
- "{{ item }}"
- "{{ item | basename }}"
when: opn_install_check_mk

- name: copy check_mk additional files
Expand Down

0 comments on commit 52b3618

Please sign in to comment.