You've already forked role-check-mk-agent
Add samba dl tasks
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user