diff --git a/plugins/modules/nios_host_record.py b/plugins/modules/nios_host_record.py index 44ac1c98..c1594e3c 100644 --- a/plugins/modules/nios_host_record.py +++ b/plugins/modules/nios_host_record.py @@ -46,6 +46,12 @@ default: true aliases: - dns + use_dns_ea_inheritance: + version_added: "1.7.0" + description: + - When use_dns_ea_inheritance is True, the EA is inherited from associated zone. The default value is False. + type: bool + default: false ipv4addrs: description: - Configures the IPv4 addresses for this host record. This argument @@ -55,6 +61,11 @@ aliases: - ipv4 suboptions: + use_for_ea_inheritance: + description: + - When use_for_ea_inheritance is True, the EA is inherited from Host address. The default value is False. + type: bool + required: false ipv4addr: description: - Configures the IPv4 address for the host record. Users can dynamically @@ -66,11 +77,6 @@ required: true aliases: - address - use_dns_ea_inheritance: - description: - - When use_dns_ea_inheritance is True, the EA is inherited from associated zone. The default value is False. - type: bool - default: false configure_for_dhcp: description: - Configure the host_record over DHCP instead of DNS, if user @@ -140,11 +146,6 @@ required: true aliases: - address - use_dns_ea_inheritance: - description: - - When use_dns_ea_inheritance is True, the EA is inherited from associated zone. The default value is False. - type: bool - default: false configure_for_dhcp: description: - Configure the host_record over DHCP instead of DNS, if user @@ -375,7 +376,7 @@ def main(): add=dict(type='bool', required=False), use_nextserver=dict(type='bool', required=False, aliases=['use_pxe']), nextserver=dict(required=False, aliases=['pxe']), - use_for_ea_inheritance=dict(type='bool', required=False), + use_for_ea_inheritance=dict(type='bool', required=False, default=False), remove=dict(type='bool', required=False) )