Remove download step. Single package module task

This commit is contained in:
2020-11-26 12:12:49 +13:00
parent 975a81ea57
commit 92386dbd09

View File

@@ -11,26 +11,16 @@
manager: "auto" manager: "auto"
- name: Install check-mk-agent - name: Install check-mk-agent
block: block:
- name: Download the agent from Server
get_url:
url: "{{ cmk_rpm_agent }}{{ cmk_auth }}"
dest: /tmp/check-mk-agent.rpm
- name: Ensure check_mk_agent installed - name: Ensure check_mk_agent installed
yum: package:
name: /tmp/check-mk-agent.rpm name: "{{ cmk_rpm_agent }}{{ cmk_auth }}"
state: installed state: latest
disable_gpg_check: true disable_gpg_check: true
notify: notify:
- restart xinetd - restart xinetd
- cmk fresh install - cmk fresh install
- ensure firewall open - ensure firewall open
- name: Remove agent Download
file:
path: /tmp/check-mk-agent.rpm
state: absent
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