diff --git a/defaults/main.yml b/defaults/main.yml index fa7a045..c14fcab 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -135,7 +135,7 @@ checkmk_agent__hostname: '{{ ansible_fqdn }}' # Check_MK attributes and WATO tags used for managing the host. For more # details check :ref:`checkmk_agent__host_attributes`. checkmk_agent__host_attributes: - tag_agent: '{{ "cmk-agent-ssh" if "ssh" in checkmk_agent else "cmk-agent" }}' + tag_agent: '{{ "cmk-agent-ssh" if "ssh" in checkmk_agent__type|d(["ssh"]) else "cmk-agent" }}' # .. envvar:: checkmk_agent__discovery_mode