Skip to content

ipa_dnszone fails for reverse zone #6905

Closed
@irozet12

Description

@irozet12

Summary

The following code fails:

  community.general.ipa_dnszone:
    ipa_host: "{{ freeipa_master }}"
    ipa_pass: "{{ freeipa_admin_password }}"
    state: present
    zone_name: "10.13.10.in-addr.arpa."
    dynamicupdate: true
    validate_certs: false

Error:

fatal: [dc02 -> dc01(10.13.19.33)]: FAILED! => changed=false 
  msg: '''idnsallowsyncptr''

Reason: this is dict key error. Freeipa response from dnszone_find method for reverse zone does not contain 'idnsallowsyncptr' field

Issue Type

Bug Report

Component Name

ipa_dnszone

Ansible Version

$ ansible --version
ansible [core 2.15.0]
  config file = ~/ansible/ansible.cfg
  configured module search path = ['~/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
  ansible python module location = /usr/local/Cellar/ansible/8.0.0/libexec/lib/python3.11/site-packages/ansible
  ansible collection location = ~/.ansible/collections:/usr/share/ansible/collections
  executable location = /usr/local/bin/ansible
  python version = 3.11.4 (main, Jun  7 2023, 00:42:15) [Clang 14.0.3 (clang-1403.0.22.14.1)] (/usr/local/Cellar/ansible/8.0.0/libexec/bin/python3.11)
  jinja version = 3.1.2
  libyaml = True

Community.general Version

$ ansible-galaxy collection list community.general
# ~.ansible/collections/ansible_collections
Collection        Version
----------------- -------
community.general 7.0.1  

# /usr/local/Cellar/ansible/8.0.0/libexec/lib/python3.11/site-packages/ansible_collections
Collection        Version
----------------- -------
community.general 7.0.1  

Configuration

$ ansible-config dump --only-changed
CONFIG_FILE() = ~/ansible/ansible.cfg
DEFAULT_HOST_LIST(~/ansible/ansible.cfg) = ['~/ansible/environments/dev/inventory']
DEFAULT_ROLES_PATH(~/ansible/ansible.cfg) = ['~/ansible/roles']
DEFAULT_STDOUT_CALLBACK(~/ansible/ansible.cfg) = yaml
INTERPRETER_PYTHON(~/ansible/ansible.cfg) = /usr/bin/python3

OS / Environment

Darwin Kernel Version 22.5.0

Steps to Reproduce

- name: Test IPA reverse zone 
  community.general.ipa_dnszone:
    ipa_host: "{{ freeipa_master }}"
    ipa_pass: "{{ freeipa_admin_password }}"
    state: present
    zone_name: "10.13.10.in-addr.arpa."
    dynamicupdate: true
    validate_certs: false

Expected Results

Reverse zone is added

Actual Results

fatal: [dc02 -> dc01(10.13.19.33)]: FAILED! => changed=false 
  msg: '''idnsallowsyncptr''

Code of Conduct

  • I agree to follow the Ansible Code of Conduct

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugThis issue/PR relates to a bugmodulemodulepluginsplugin (any type)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions