You've already forked role-check-mk-agent
Added option force install/reinstall on RHEL
This commit is contained in:
@@ -22,4 +22,9 @@ cmk_auth: "&_username={{ cmk_username }}&_secret={{ cmk_secret }}"
|
|||||||
|
|
||||||
# This variable is used to detect whether this is a fresh install
|
# This variable is used to detect whether this is a fresh install
|
||||||
# Is changed to true if check-mk-agent gets installed
|
# Is changed to true if check-mk-agent gets installed
|
||||||
cmk_fresh_install: false
|
cmk_fresh_install: false
|
||||||
|
|
||||||
|
# This variable if set to true will force installation to run regardless of whether
|
||||||
|
# CheckMK is already installed.
|
||||||
|
# Breaks idempotence but allows role to be used to force upgrade agents.
|
||||||
|
cmk_force_install: false
|
||||||
|
|||||||
@@ -29,6 +29,6 @@
|
|||||||
file:
|
file:
|
||||||
path: /tmp/check-mk-agent.rpm
|
path: /tmp/check-mk-agent.rpm
|
||||||
state: absent
|
state: absent
|
||||||
when: "'check-mk-agent' not in ansible_facts.packages"
|
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