Allow override of IP address

This commit is contained in:
2021-05-08 05:58:43 +12:00
parent 294df3f441
commit 957795b4fe
2 changed files with 3 additions and 1 deletions

View File

@@ -39,3 +39,5 @@ cmk_fresh_install: false
# CheckMK is already installed.
# Breaks idempotence but allows role to be used to force upgrade agents.
cmk_force_install: false
cmk_guest_ip: "{{ ansible_host }}"

View File

@@ -8,7 +8,7 @@
"attributes": {
"tag_criticality": "prod",
"tag_agent": "cmk-agent",
"ipaddress": "{{ ansible_host }}"
"ipaddress": "{{ cmk_host_ip }}"
},
"folder": "{{ cmk_folder | default('Unsorted') }}",
"hostname": "{{ instance_name | default(inventory_hostname) }}"