forked from ansible/ansible
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
vmware_host_dns: consistent rslt when name changes
This commit address a problem in static mode, if the hostname change, `host.name` value with change too. And as a result: results['dns_config_result'][host.name] will be initialized. We now record the initial hostname first, and uses it as the key for the results. This commit also ensures hostname and search domain change are detected if `instance.dnsConfig.dhcp` is true. Finally, if we target a cluster, the `changed` result will depend on the number of nodes.
- Loading branch information
Showing
2 changed files
with
58 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters