diff --git a/meta/argument_specs.yml b/meta/argument_specs.yml index e7d69870a1e3db9643c9424798219aa355e03d9e..cd2c67f60ad7ca41075a6f952567d53d290d5c58 100644 --- a/meta/argument_specs.yml +++ b/meta/argument_specs.yml @@ -102,6 +102,11 @@ argument_specs: type: str required: true description: Icinga master node fully qualified hostname. + icinga_master_nodes: + type: list + elements: str + required: true + description: A list of Icinga master nodes, there shoudl only be one. icinga_master_node_ipv4: type: str required: true diff --git a/tasks/main.yml b/tasks/main.yml index d8557d7e55ea0f9bee74155d27dfc5019e1412ec..fba2934bc17dfa4bac7d5e9ae13162eb95ece4f8 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -18,6 +18,11 @@ - name: Icinga agent node group and debugging and checking block: + - name: Debug icinga_master_nodes + ansible.builtin.debug: + var: icinga_master_nodes + verbosity: "{% if ansible_check_mode | bool %}0{% else %}1{% endif %}" + - name: Include Icinga verify variables tasks ansible.builtin.include_tasks: verify.yml when: