diff --git a/changelogs/fragments/7452-fix-icinga2_host-requiring-ip-key.yml b/changelogs/fragments/7452-fix-icinga2_host-requiring-ip-key.yml new file mode 100644 index 0000000000..b5d612033e --- /dev/null +++ b/changelogs/fragments/7452-fix-icinga2_host-requiring-ip-key.yml @@ -0,0 +1,2 @@ +minor_changes: + - icinga2_host - the ``ip`` option is no longer required, since Icinga 2 allows for an empty address attribute (https://github.com/ansible-collections/community.general/pull/7452). diff --git a/plugins/modules/icinga2_host.py b/plugins/modules/icinga2_host.py index c7c325ad52..ec04d8df74 100644 --- a/plugins/modules/icinga2_host.py +++ b/plugins/modules/icinga2_host.py @@ -106,7 +106,7 @@ options: type: str description: - The IP address of the host. - required: true + - This is no longer required since community.general 8.0.0. variables: type: dict description: @@ -243,7 +243,7 @@ def main(): template=dict(default=None), check_command=dict(default="hostalive"), display_name=dict(default=None), - ip=dict(required=True), + ip=dict(), variables=dict(type='dict', default=None), )