37 lines
1.2 KiB
YAML
37 lines
1.2 KiB
YAML
---
|
|
- name: "Linux | Ensure local dir exists"
|
|
ansible.builtin.file:
|
|
path: "{{ checkmk_linux_local_dir }}"
|
|
state: directory
|
|
mode: "0755"
|
|
|
|
- name: "Linux | Ensure config dir exists"
|
|
ansible.builtin.file:
|
|
path: "{{ checkmk_linux_config_dir }}"
|
|
state: directory
|
|
mode: "0755"
|
|
|
|
- name: "Linux | Deploy UniFi local check"
|
|
when: is_unifi_controller | default(false) | bool
|
|
ansible.builtin.copy:
|
|
src: "{{ checkmk_linux_scripts_dir }}/check_unifi-controller.sh"
|
|
dest: "{{ checkmk_linux_local_dir }}/check_unifi-controller.sh"
|
|
mode: "0755"
|
|
notify: "checkmk | linux | agent-ensure-running"
|
|
|
|
- name: "Linux | Deploy unifi.cfg"
|
|
when: is_unifi_controller | default(false) | bool
|
|
ansible.builtin.copy:
|
|
src: "{{ checkmk_linux_scripts_dir }}/unifi.cfg"
|
|
dest: "{{ checkmk_linux_config_dir }}/unifi.cfg"
|
|
mode: "0644"
|
|
notify: "checkmk | linux | agent-ensure-running"
|
|
|
|
- name: "Linux | Deploy certificate directory check"
|
|
when: want_linux_check_certificate | default(false) | bool
|
|
ansible.builtin.copy:
|
|
src: "{{ checkmk_linux_scripts_dir }}/check_certificate_directory.sh"
|
|
dest: "{{ checkmk_linux_local_dir }}/check_certificate_directory.sh"
|
|
mode: "0755"
|
|
notify: "checkmk | linux | agent-ensure-running"
|