1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Fix icinga2_host requiring ip key. (#7452)

* Fix icinga2_host requiring ip key.

Fixes #5248

* Add changelog fragment

* Update changelogs/fragments/7452-fix-icinga2_host-requiring-ip-key.yml

Co-authored-by: Felix Fontein <felix@fontein.de>

* Update plugins/modules/icinga2_host.py

Co-authored-by: Felix Fontein <felix@fontein.de>

* Update changelogs/fragments/7452-fix-icinga2_host-requiring-ip-key.yml

Co-authored-by: Felix Fontein <felix@fontein.de>

---------

Co-authored-by: Donien <donien.96@hotmail.com>
Co-authored-by: Felix Fontein <felix@fontein.de>
This commit is contained in:
Donien 2023-11-01 07:56:44 +01:00 committed by GitHub
parent 2a7f9f28b9
commit b6e1d04c0c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 2 deletions

View file

@ -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).

View file

@ -106,7 +106,7 @@ options:
type: str type: str
description: description:
- The IP address of the host. - The IP address of the host.
required: true - This is no longer required since community.general 8.0.0.
variables: variables:
type: dict type: dict
description: description:
@ -243,7 +243,7 @@ def main():
template=dict(default=None), template=dict(default=None),
check_command=dict(default="hostalive"), check_command=dict(default="hostalive"),
display_name=dict(default=None), display_name=dict(default=None),
ip=dict(required=True), ip=dict(),
variables=dict(type='dict', default=None), variables=dict(type='dict', default=None),
) )