-
Notifications
You must be signed in to change notification settings - Fork 62
Description
Summary
Running the role infra.aap_utilities.aap_setup_install fails after successful install of update. Then fails when "Waiting for automation controller to be running" task executes on localhost.
Issue Type
- Bug Report
Ansible, Collection, Docker/Podman details
ansible --version
ansible [core 2.15.3]
config file = /home/user/gitlab/aap-config/ansible.cfg
configured module search path = ['/home/user/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
ansible python module location = /home/user/.local/lib/python3.11/site-packages/ansible
ansible collection location = /home/user/.ansible/collections:/usr/share/ansible/collections
executable location = /home/user/.local/bin/ansible
python version = 3.11.11 (main, Dec 9 2024, 15:32:27) [GCC 8.5.0 20210514 (Red Hat 8.5.0-22)] (/usr/bin/python3)
jinja version = 3.1.4
libyaml = True
ansible-galaxy collection list
Collection Version
-------------------- -------
ansible.posix 2.0.0
community.general 10.1.0
community.postgresql 3.10.2
infra.aap_utilities 2.6.0
kubernetes.core 5.1.0
podman --version
podman version 4.9.4-rhel- ansible installation method: one of source, pip, OS package, EE
pip
OS / ENVIRONMENT
Red Hat Enterprise Linux 8.10
Desired Behavior
Expected the task to wait for the controllers to start
Actual Behavior
After the setup installation completes, successfully, when it gets to the task 'Wait for automation controller to be running' it has a problem with the variables. Unusual, because they were used to create the inventory file using aap_setup_download role. The error output
TASK [infra.aap_utilities.aap_setup_install : Wait for automation controller to be running] ***************************************
fatal: [localhost]: FAILED! => {"msg": "The task includes an option with an undefined variable. The error was: {{ (aap_setup_prep_inv_nodes['automationcontroller'].keys() | list)[0] }}: 'list object' has no attribute 'keys'. 'list object' has no attribute 'keys'. {{ (aap_setup_prep_inv_nodes['automationcontroller'].keys() | list)[0] }}: 'list object' has no attribute 'keys'. 'list object' has no attribute 'keys'\n\nThe error appears to be in '/home/dking/.ansible/collections/ansible_collections/infra/aap_utilities/roles/aap_setup_install/tasks/setup.yml': line 96, column 7, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n\n - name: Wait for automation controller to be running\n ^ here\n"}
STEPS TO REPRODUCE
variables.yml
https://gist.github.com/usmcguy/28ce963d3d3b884d702f19e78f30c486
PROD.ini
https://gist.github.com/usmcguy/6fa7c186fd162d8d8596fa8facadc211
aap_install.yml
https://gist.github.com/usmcguy/c56edd3e2693bef5a4c1b6fd174efe09
ansible-playbook -i PROD.ini aap_install.yml -K