Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Name of Host Record Fails if DNS Bypassed #230

Closed
dlehrman opened this issue Jun 2, 2024 · 1 comment
Closed

Update Name of Host Record Fails if DNS Bypassed #230

dlehrman opened this issue Jun 2, 2024 · 1 comment
Assignees

Comments

@dlehrman
Copy link
Contributor

dlehrman commented Jun 2, 2024

Attempts to update the name of an existing host record that was created with configure_for_dns: false fail to find the existing record.

Given the example at https://docs.ansible.com/ansible/latest/collections/infoblox/nios_modules/nios_host_record_module.html#ansible-collections-infoblox-nios-modules-nios-host-record-module (configure_for_dns: false added by me):

- name: Update an ipv4 host record
  infoblox.nios_modules.nios_host_record:
    name: {new_name: host-new.ansible.com, old_name: host.ansible.com}
    ipv4:
      - address: 192.168.10.1
    configure_for_dns: false
    state: present
    provider:
      host: "{{ inventory_hostname_short }}"
      username: admin
      password: admin
  connection: local

If host.ansible.com had been created with with configure_for_dns: false, the task will fail with an error message stating the record could not be found.

@JkhatriInfobox
Copy link
Collaborator

The issue has been resolved with the merge of PR #229. Therefore, I am closing this issue.

If the problem persists, please feel free to re-open this issue or create a new one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants