Skip to content

infra.aap_configuration.gateway_authenticators role fails on existing authenticator with message “Item authenticator does not exist: false” #1141

@daleroux

Description

@daleroux

Summary

When using the infra.aap_configuration.dispatch role to configure an automation gateway, the execution fails if the specified authenticator already exists. The failure message is:

Item authenticator does not exist: false

This contradicts the expected idempotent behavior

Issue Type

  • Bug Report

Ansible, Collection, Controller details

ansible --version
ansible [core 2.18.5]
  config file = /etc/ansible/ansible.cfg
  configured module search path = ['/root/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
  ansible python module location = /usr/local/lib/python3.12/site-packages/ansible
  ansible collection location = /root/.ansible/collections:/usr/share/ansible/collections
  executable location = /usr/local/bin/ansible
  python version = 3.12.9 (main, Feb  4 2025, 00:00:00) [GCC 11.5.0 20240719 (Red Hat 11.5.0-4)] (/usr/bin/python3.12)
  jinja version = 3.1.6
  libyaml = True

ansible-galaxy collection list
# /root/.ansible/collections/ansible_collections
Collection              Version     
----------------------- ------------
ansible.controller      4.6.11      
ansible.eda             2.7.0       
ansible.hub             1.0.0       
ansible.platform        2.5.20250326
ansible.posix           2.0.0       
community.general       10.5.0      
containers.podman       1.16.3      
infra.aap_configuration 3.2.0       
infra.aap_utilities     2.6.1       
infra.ah_configuration  2.1.0       
infra.ee_utilities      4.0.2       
kubernetes.core         5.2.0 

controller version: 4.6.16
  • ansible installation method: one of source, pip, OS package, EE

OS / ENVIRONMENT

Desired Behavior

The playbook should complete successfully with no changes (idempotent behavior), as it does when using ansible.platform.authenticator directly.

Actual Behavior

The role fails with the message:

Item authenticator does not exist: false

group_vars_stage_gateway_authenticators.txt
playbook_gateway_config.yml.txt

Please give some details of what is actually happening.
Include a [minimum complete verifiable example] with:

  • playbook / task
  • configuration file / list
  • error

STEPS TO REPRODUCE

Invoke the playbook playbook_gateway_config.yml

with following variables:
group_vars\stage\gateway_authenticators

( see attachments )

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions