Add samba dl tasks

This commit is contained in:
2022-08-09 07:41:10 +12:00
parent c41c2dc447
commit 3d39f3e231

View File

@@ -42,6 +42,15 @@
manager: "auto" manager: "auto"
when: cmk_force_install when: cmk_force_install
# Download agent by samba share
- include_tasks: downloads/samba/main.yml
when: cmk_download_mode == 'samba'
- name: Copy installer to node
copy:
src: /tmp/dls/{{ cmk_installer }}
dest: /tmp/check-mk-agent.rpm
- name: Install check-mk-agent - name: Install check-mk-agent
block: block:
@@ -65,13 +74,14 @@
when: not cmkrpm.stat.exists and not cmk_dl_needs_auth|bool when: not cmkrpm.stat.exists and not cmk_dl_needs_auth|bool
- name: Ensure check_mk_agent installed - name: Ensure check_mk_agent installed
command: /usr/bin/yum install --nogpgcheck -y /tmp/check-mk-agent.rpm package:
args: name: /tmp/check-mk-agent.rpm
warn: no state: latest
disable_gpg_check: true # Not gpg signed so bypass the check
notify: notify:
- restart xinetd - restart xinetd
- cmk fresh install - cmk fresh install
- ensure firewall open - ensure firewall open (rhel)
when: "'check-mk-agent' not in ansible_facts.packages or cmk_force_install" when: "'check-mk-agent' not in ansible_facts.packages or cmk_force_install"
tags: tags:
- check_mk_agent - check_mk_agent