ansible/workshops

Setting up RHEL workshop and Automation Controller install fails.

imak opened this issue · 3 comments

imak commented

Problem Summary

Provision fails with ERROR! the playbook: ansible.containerized_installer.install could not be found

Issue Type

Bug

Extra vars file


region where the nodes will live

ec2_region: us-east-2

name prefix for all the VMs

ec2_name_prefix: test

creates student_total of workbenches for the workshop

student_total: 15

Set the right workshop type, like network, rhel or f5 (see above)

workshop_type: rhel

Generate offline token to authenticate the calls to Red Hat's APIs

Can be accessed at https://access.redhat.com/management/api

offline_token: "xxx"

Required for podman authentication to registry.redhat.io

redhat_username: XXX@XXX
redhat_password: XXX

#####OPTIONAL VARIABLES

turn DNS on for control nodes, and set to type in valid_dns_type

dns_type: aws

password for Ansible control node

admin_password: password

Sets the Route53 DNS zone to use for Amazon Web Services

workshop_dns_zone: xxx.xxx

automatically installs Tower to control node

controllerinstall: true

forces ansible.workshops collection to install latest edits every time

developer_mode: true

SHA value of targeted AAP bundle setup files.

provided_sha_value: "xxxx"

pre_build: false

default vars for ec2 AMIs (ec2_info) are located in provisioner/roles/manage_ec2_instances/defaults/main/main.yml

select ec2_info AMI vars can be overwritten via ec2_xtra vars, e.g.:

#ec2_xtra:

satellite:

owners: 012345678910

filter: Satellite*

username: ec2-user

os_type: linux

size: r5b.2xlarge

Ansible Playbook Output

TASK [../roles/control_node : run the Automation Controller installer] ***********************************************************************************************************************
Monday 18 December 2023 12:20:43 -0500 (0:00:06.549) 0:36:09.431 *******
ASYNC FAILED on fiercesw-aap-student7-ansible-1: jid=j359844374098.22005
fatal: [fiercesw-aap-student7-ansible-1]: FAILED! => {"ansible_job_id": "j359844374098.22005", "changed": true, "cmd": "ansible-playbook -i inventory ansible.containerized_installer.install -e gpgcheck=0", "delta": "0:00:00.639052", "end": "2023-12-18 17:20:45.496996", "finished": 1, "msg": "non-zero return code", "rc": 1, "results_file": "/home/ec2-user/.ansible_async/j359844374098.22005", "start": "2023-12-18 17:20:44.857944", "started": 1, "stderr": "ERROR! the playbook: ansible.containerized_installer.install could not be found", "stderr_lines": ["ERROR! the playbook: ansible.containerized_installer.install could not be found"], "stdout": "", "stdout_lines": []}

This repeats for all student controller nodes.

Ansible Version

ansible [core 2.16.0]
config file = /xxx/workshops/provisioner/ansible.cfg
configured module search path = ['/xxx/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
ansible python module location = /usr/lib/python3.12/site-packages/ansible
ansible collection location = /xxx/.ansible/collections:/usr/share/ansible/collections
executable location = /usr/bin/ansible
python version = 3.12.0 (main, Oct 2 2023, 00:00:00) [GCC 13.2.1 20230918 (Red Hat 13.2.1-3)] (/usr/bin/python3)
jinja version = 3.1.2
libyaml = True

Ansible Configuration

CALLBACKS_ENABLED(/home/imak/Documents/Endosys/Partners/Fierce/RH_Workshops/workshops/provisioner/ansible.cfg) = ['ansible.posix.profile_tasks']
CONFIG_FILE() = /xxx/workshops/provisioner/ansible.cfg
DEFAULT_FORKS(/xxx/workshops/provisioner/ansible.cfg) = 50
DEFAULT_HOST_LIST(/xxx/workshops/provisioner/ansible.cfg) = ['/xxx/workshops/provis>
EDITOR(env: EDITOR) = vim
HOST_KEY_CHECKING(/xxx/workshops/provisioner/ansible.cfg) = False
PERSISTENT_COMMAND_TIMEOUT(/xxx/workshops/provisioner/ansible.cfg) = 60
PERSISTENT_CONNECT_TIMEOUT(/xxx/workshops/provisioner/ansible.cfg) = 60
RETRY_FILES_ENABLED(/xxx/workshops/provisioner/ansible.cfg) = False
(END)

Ansible Execution Node

CLI Ansible (Ansible Core)

Operating System

Fedora 39

Look like you are on the devel branch, you need to download the containerized installer to make it work

image

There is a "containerized" setup bundle at the bottom there

please reopen if that does not fix it

imak commented

That got past that failure but then failed with during the install with another failure. Unfortunately, I have to run the workshop tomorrow and you pointed out that I was on the devel branch... unintentionally!! So I am switching to main and moving on.

Here's the failure from devel after getting the correct aap tarball:

TASK [../roles/control_node : run the Automation Controller installer] ******************************************************************************************************************************************************************************************************************************************
Monday 18 December 2023 15:45:14 -0500 (0:00:10.566) 0:37:35.140 *******
ASYNC POLL on fiercesw-aap-student15-ansible-1: jid=j451323967627.29283 started=1 finished=0
ASYNC POLL on fiercesw-aap-student8-ansible-1: jid=j615783191877.29170 started=1 finished=0
ASYNC POLL on fiercesw-aap-student10-ansible-1: jid=j330348669433.29048 started=1 finished
...
fatal: [fiercesw-aap-student4-ansible-1]: FAILED! => {"ansible_job_id": "j122164815218.30006", "changed": true, "cmd": "ansible-playbook -i inventory ansible.containerized_installer.install -e gpgcheck=0", "delta": "0:04:14.582049", "end": "2023-12-18 20:49:30.460601", "finished": 1, "msg": "non-zero return code", "rc": 2, "results_file": "/home/ec2-user/.ansible_async/j122164815218.30006", "start": "2023-12-18 20:45:15.878552", "started": 1, "stderr": "[WARNING]: running playbook inside collection ansible.containerized_installer\n[WARNING]: Could not match supplied host pattern, ignoring: automationeda", "stderr_lines": ["[WARNING]: running playbook inside collection ansible.containerized_installer", "[WARNING]: Could not match supplied host pattern, ignoring: automationeda"], "stdout": "\nPLAY [Preflight checks] ********************************************************\n\nTASK [Gather facts] ************************************************************\nok: [localhost]\n\nTASK [ansible.containerized_installer.common : Test for ostree-based OS] *******\nok: [localhost]\n\nTASK [ansible.containerized_installer.common : Set ostree-based OS fact] *******\nok: [localhost]\n\nTASK [ansible.containerized_installer.preflight : Ensure registry username and password are provided] ***\nskipping: [localhost]\n\nTASK [ansible.containerized_installer.preflight : Ensure only one managed database] ***\nok: [localhost] => {\n "changed": false,\n "msg": "All assertions passed"\n}\n\nTASK [ansible.containerized_installer.preflight : Ensure postgresql admin password is provided] ***\nok: [localhost] => {\n "changed": false,\n "msg": "All assertions passed"\n}\n\nTASK [ansible.containerized_installer.preflight : Ensure postgresql admin user is provided] ***\nskipping: [localhost]\n\nTASK [ansible.containerized_installer.preflight : Ensure controller admin password is provided] ***\nok: [localhost] => {\n "changed": false,\n "msg": "All assertions passed"\n}\n\nTASK [ansible.containerized_installer.preflight : Ensure controller postgresql host and password are provided] ***\nok: [localhost] => {\n "changed": false,\n "msg": "All assertions passed"\n}\n\nTASK [ansible.containerized_installer.preflight : Ensure hub admin password is provided] ***\nskipping: [localhost]\n\nTASK [ansible.containerized_installer.preflight : Ensure hub postgresql host and password are provided] ***\nskipping: [localhost]\n\nTASK [ansible.containerized_installer.preflight : Ensure that Automation Hub LDAP parameters are specified when LDAP backend is enabled] ***\nskipping: [localhost]\n\nTASK [ansible.containerized_installer.preflight : Include eda checks] **********\nskipping: [localhost]\n\nTASK [ansible.containerized_installer.preflight : Ensure address for shared hub data storage is provided for multi-instance] ***\nskipping: [localhost]\n\nTASK [ansible.containerized_installer.preflight : Ensure bundle_dir is provided] ***\nok: [localhost] => {\n "changed": false,\n "msg": "All assertions passed"\n}\n\nTASK [ansible.containerized_installer.preflight : Check the license file presence] ***\nok: [localhost]\n\nTASK [ansible.containerized_installer.preflight : Validate that the license file exists] ***\nok: [localhost] => {\n "changed": false,\n "msg": "All assertions passed"\n}\n\nTASK [ansible.containerized_installer.preflight : Ensure controller license file is provided] ***\nok: [localhost] => {\n "changed": false,\n "msg": "All assertions passed"\n}\n\nTASK [ansible.containerized_installer.preflight : Ensure controller postinstall dir is provided] ***\nok: [localhost] => {\n "changed": false,\n "msg": "All assertions passed"\n}\n\nTASK [ansible.containerized_installer.preflight : Check the controller postinstall directory] ***\nok: [localhost]\n\nTASK [ansible.containerized_installer.preflight : Validate that the postinstall directory exists] ***\nok: [localhost] => {\n "changed": false,\n "msg": "All assertions passed"\n}\n\nTASK [ansible.containerized_installer.preflight : Gather local architecture fact] ***\nskipping: [localhost]\n\nTASK [ansible.containerized_installer.preflight : Check local architecture] ****\nskipping: [localhost]\n\nTASK [ansible.containerized_installer.preflight : Gather remote controller architecture facts] ***\nskipping: [localhost] => (item=ansible-1) \nskipping: [localhost]\n\nTASK [ansible.containerized_installer.preflight : Check remote controller architecture] ***\nskipping: [localhost] => (item=ansible-1) \nskipping: [localhost]\n\nTASK [ansible.containerized_installer.preflight : Check EE extra images structure] ***\nskipping: [localhost]\n\nTASK [ansible.containerized_installer.preflight : Check the postgresql_effective_cache_size format] ***\nskipping: [localhost]\n\nTASK [ansible.containerized_installer.preflight : Check the postgresql_shared_buffers format] ***\nskipping: [localhost]\n\nPLAY [Install common container components] *************************************\n\nTASK [Gather facts] ************************************************************\nok: [ansible-1]\n\nTASK [Gather regular user id, uid and home dir] ********************************\nok: [ansible-1]\n\nTASK [ansible.containerized_installer.common : Ensure remote user is non root] ***\nok: [ansible-1] => {\n "changed": false,\n "msg": "All assertions passed"\n}\n\nTASK [ansible.containerized_installer.common : Get service facts] **************\nok: [ansible-1]\n\nTASK [ansible.containerized_installer.common : Configure sub UID/GIDs] *********\nincluded: /home/ec2-user/aap_install/collections/ansible_collections/ansible/containerized_installer/roles/common/tasks/subids.yml for ansible-1\n\nTASK [ansible.containerized_installer.common : Ensure user has enough subuids in namespace] ***\nok: [ansible-1]\n\nTASK [ansible.containerized_installer.common : Ensure user has enough subugids in namespace] ***\nok: [ansible-1]\n\nTASK [ansible.containerized_installer.common : Run ostree tasks] ***************\nincluded: /home/ec2-user/aap_install/collections/ansible_collections/ansible/containerized_installer/roles/common/tasks/ostree.yml for ansible-1\n\nTASK [ansible.containerized_installer.common : Test for ostree-based OS] *******\nok: [ansible-1]\n\nTASK [ansible.containerized_installer.common : Set ostree-based OS fact] *******\nok: [ansible-1]\n\nTASK [ansible.containerized_installer.common : Get package Facts] **************\nskipping: [ansible-1]\n\nTASK [ansible.containerized_installer.common : Ensure container tools packages are present] ***\nskipping: [ansible-1] => (item=crun) \nskipping: [ansible-1] => (item=podman) \nskipping: [ansible-1] => (item=slirp4netns) \nskipping: [ansible-1] => (item=fuse-overlayfs) \nskipping: [ansible-1]\n\nTASK [ansible.containerized_installer.common : Ensure python3-cryptography and python3-psycopg2 python packages are present] ***\nskipping: [ansible-1]\n\nTASK [ansible.containerized_installer.common : Ensure python3-firewall package is present] ***\nskipping: [ansible-1]\n\nTASK [ansible.containerized_installer.common : Install container tools] ********\nchanged: [ansible-1]\n\nTASK [ansible.containerized_installer.common : Create the containers config directory] ***\nchanged: [ansible-1]\n\nTASK [ansible.containerized_installer.common : Configure podman runtime with crun] ***\nchanged: [ansible-1]\n\nTASK [ansible.containerized_installer.common : Configure podman execution plane] ***\nincluded: /home/ec2-user/aap_install/collections/ansible_collections/ansible/containerized_installer/roles/common/tasks/executionplane.yml for ansible-1\n\nTASK [ansible.containerized_installer.common : Create the custom podman rootless storage folder] ***\nchanged: [ansible-1]\n\nTASK [ansible.containerized_installer.common : Create custom podman storage.conf] ***\nchanged: [ansible-1]\n\nTASK [ansible.containerized_installer.common : Create directory for custom podman service configuration] ***\nchanged: [ansible-1]\n\nTASK [ansible.containerized_installer.common : Configure podman service] *******\nchanged: [ansible-1]\n\nTASK [ansible.containerized_installer.common : Enable podman socket] ***********\nchanged: [ansible-1]\n\nTASK [ansible.containerized_installer.common : Create podman custom command] ***\nchanged: [ansible-1]\n\nTASK [ansible.containerized_installer.common : Enable lingering for ansible_user] ***\nchanged: [ansible-1]\n\nTASK [ansible.containerized_installer.common : Include registry tasks] *********\nskipping: [ansible-1]\n\nTASK [ansible.containerized_installer.common : Include container image tasks] ***\nincluded: /home/ec2-user/aap_install/collections/ansible_collections/ansible/containerized_installer/roles/common/tasks/images.yml for ansible-1\n\nTASK [ansible.containerized_installer.common : Set full container images URL] ***\nok: [ansible-1]\n\nTASK [ansible.containerized_installer.common : Add controller images to the list] ***\nok: [ansible-1]\n\nTASK [ansible.containerized_installer.common : Add eda images to the list] *****\nskipping: [ansible-1]\n\nTASK [ansible.containerized_installer.common : Add hub images to the list] *****\nskipping: [ansible-1]\n\nTASK [ansible.containerized_installer.common : Add redis image to the list] ****\nok: [ansible-1]\n\nTASK [ansible.containerized_installer.common : Add postgresql image to the list] ***\nok: [ansible-1]\n\nTASK [ansible.containerized_installer.common : Add DE images to the list] ******\nskipping: [ansible-1]\n\nTASK [ansible.containerized_installer.common : Add EE images to the list] ******\nok: [ansible-1]\n\nTASK [ansible.containerized_installer.common : Add ee-29 to the list] **********\nskipping: [ansible-1]\n\nTASK [ansible.containerized_installer.common : Set de_extra_images fact] *******\nskipping: [ansible-1]\n\nTASK [ansible.containerized_installer.common : Add extra DE images to the ee list] ***\nskipping: [ansible-1]\n\nTASK [ansible.containerized_installer.common : Set ee_extra_images fact] *******\nskipping: [ansible-1]\n\nTASK [ansible.containerized_installer.common : Add extra EE images to the ee list] ***\nskipping: [ansible-1]\n\nTASK [ansible.containerized_installer.common : Install compress package] *******\nok: [ansible-1]\n\nTASK [ansible.containerized_installer.common : Create temporary directory for container tarballs] ***\nchanged: [ansible-1]\n\nTASK [ansible.containerized_installer.common : Copy bundled container images] ***\nchanged: [ansible-1]\n\nTASK [ansible.containerized_installer.common : Uncompress bundled container images] ***\nchanged: [ansible-1] => (item=registry.redhat.io/ansible-automation-platform-24/controller-rhel8:latest)\nchanged: [ansible-1] => (item=registry.redhat.io/ansible-automation-platform-24/ee-supported-rhel8:latest)\nchanged: [ansible-1] => (item=registry.redhat.io/rhel8/redis-6:latest)\nchanged: [ansible-1] => (item=registry.redhat.io/rhel8/postgresql-13:latest)\nchanged: [ansible-1] => (item=registry.redhat.io/ansible-automation-platform-24/ee-minimal-rhel8:latest)\n\nTASK [ansible.containerized_installer.common : Load the controlplane container images] ***\nchanged: [ansible-1] => (item=registry.redhat.io/ansible-automation-platform-24/controller-rhel8:latest)\nchanged: [ansible-1] => (item=registry.redhat.io/ansible-automation-platform-24/ee-supported-rhel8:latest)\nchanged: [ansible-1] => (item=registry.redhat.io/rhel8/redis-6:latest)\nchanged: [ansible-1] => (item=registry.redhat.io/rhel8/postgresql-13:latest)\n\nTASK [ansible.containerized_installer.common : Load the executionplane container images] ***\nchanged: [ansible-1] => (item=registry.redhat.io/ansible-automation-platform-24/ee-minimal-rhel8:latest)\nchanged: [ansible-1] => (item=registry.redhat.io/ansible-automation-platform-24/ee-supported-rhel8:latest)\n\nTASK [ansible.containerized_installer.common : Set io.containers.autoupdate=local label] ***\nok: [ansible-1]\n\nTASK [ansible.containerized_installer.common : Remove temporary directory] *****\nchanged: [ansible-1]\n\nTASK [ansible.containerized_installer.common : Pull the controlplane container images] ***\nskipping: [ansible-1] => (item=registry.redhat.io/ansible-automation-platform-24/controller-rhel8:latest) \nskipping: [ansible-1] => (item=registry.redhat.io/ansible-automation-platform-24/ee-supported-rhel8:latest) \nskipping: [ansible-1] => (item=registry.redhat.io/rhel8/redis-6:latest) \nskipping: [ansible-1] => (item=registry.redhat.io/rhel8/postgresql-13:latest) \nskipping: [ansible-1]\n\nTASK [ansible.containerized_installer.common : Pull the executionplane container images] ***\nskipping: [ansible-1] => (item=registry.redhat.io/ansible-automation-platform-24/ee-minimal-rhel8:latest) \nskipping: [ansible-1] => (item=registry.redhat.io/ansible-automation-platform-24/ee-supported-rhel8:latest) \nskipping: [ansible-1]\n\nTASK [ansible.containerized_installer.common : Set io.containers.autoupdate=registry label] ***\nskipping: [ansible-1]\n\nTASK [ansible.containerized_installer.common : Configure firewalld] ************\nincluded: /home/ec2-user/aap_install/collections/ansible_collections/ansible/containerized_installer/roles/common/tasks/firewalld.yml for ansible-1\n\nTASK [ansible.containerized_installer.common : Ensure firewalld is started] ****\nskipping: [ansible-1]\n\nTASK [ansible.containerized_installer.common : Install python-firewall] ********\nskipping: [ansible-1]\n\nPLAY [Install the database] ****************************************************\n\nTASK [ansible.containerized_installer.postgresql : Set postgresql facts] *******\nincluded: /home/ec2-user/aap_install/collections/ansible_collections/ansible/containerized_installer/roles/postgresql/tasks/facts.yml for ansible-1\n\nTASK [ansible.containerized_installer.postgresql : Set effective cache size fact for dedicated database node] ***\nskipping: [ansible-1]\n\nTASK [ansible.containerized_installer.postgresql : Set shared buffers fact for dedicated database node] ***\nskipping: [ansible-1]\n\nTASK [ansible.containerized_installer.postgresql : Set effective cache size fact for collocated database node] ***\nok: [ansible-1]\n\nTASK [ansible.containerized_installer.postgresql : Set shared buffers fact for collocated database node] ***\nok: [ansible-1]\n\nTASK [ansible.containerized_installer.postgresql : Configure podman secrets] ***\nincluded: /home/ec2-user/aap_install/collections/ansible_collections/ansible/containerized_installer/roles/postgresql/tasks/secrets.yml for ansible-1\n\nTASK [ansible.containerized_installer.postgresql : Create the postgresql admin password secret] ***\nchanged: [ansible-1]\n\nTASK [ansible.containerized_installer.postgresql : Configure podman volumes] ***\nincluded: /home/ec2-user/aap_install/collections/ansible_collections/ansible/containerized_installer/roles/postgresql/tasks/volumes.yml for ansible-1\n\nTASK [ansible.containerized_installer.postgresql : Create the postgresql data volume] ***\nchanged: [ansible-1]\n\nTASK [ansible.containerized_installer.postgresql : Configure containers] *******\nincluded: /home/ec2-user/aap_install/collections/ansible_collections/ansible/containerized_installer/roles/postgresql/tasks/containers.yml for ansible-1\n\nTASK [ansible.containerized_installer.postgresql : Create the postgresql container] ***\nchanged: [ansible-1]\n\nTASK [ansible.containerized_installer.postgresql : Configure systemd] **********\nincluded: /home/ec2-user/aap_install/collections/ansible_collections/ansible/containerized_installer/roles/postgresql/tasks/systemd.yml for ansible-1\n\nTASK [ansible.containerized_installer.postgresql : Ensure postgresql container is enabled and started] ***\nchanged: [ansible-1]\n\nTASK [ansible.containerized_installer.postgresql : Add firewalld rules] ********\nincluded: /home/ec2-user/aap_install/collections/ansible_collections/ansible/containerized_installer/roles/postgresql/tasks/firewalld.yml for ansible-1\n\nTASK [ansible.containerized_installer.postgresql : Manage postgresql firewalld port] ***\nskipping: [ansible-1]\n\nPLAY [Install the redis cache] *************************************************\n\nTASK [ansible.containerized_installer.redis : Configure podman volumes] ********\nincluded: /home/ec2-user/aap_install/collections/ansible_collections/ansible/containerized_installer/roles/redis/tasks/volumes.yml for ansible-1\n\nTASK [ansible.containerized_installer.redis : Create the redis data volume] ****\nchanged: [ansible-1] => (item=redis_data)\nchanged: [ansible-1] => (item=redis_etc)\nchanged: [ansible-1] => (item=redis_run)\n\nTASK [ansible.containerized_installer.redis : Create the redis configuration] ***\nchanged: [ansible-1]\n\nTASK [ansible.containerized_installer.redis : Configure containers] ************\nincluded: /home/ec2-user/aap_install/collections/ansible_collections/ansible/containerized_installer/roles/redis/tasks/containers.yml for ansible-1\n\nTASK [ansible.containerized_installer.redis : Create the redis container] ******\nchanged: [ansible-1]\n\nTASK [ansible.containerized_installer.redis : Configure systemd] ***************\nincluded: /home/ec2-user/aap_install/collections/ansible_collections/ansible/containerized_installer/roles/redis/tasks/systemd.yml for ansible-1\n\nTASK [ansible.containerized_installer.redis : Ensure redis container is enabled and started] ***\nchanged: [ansible-1]\n\nRUNNING HANDLER [ansible.containerized_installer.redis : Restart redis] ********\nchanged: [ansible-1]\n\nPLAY [Install the Automation Controller] ***************************************\n\nTASK [ansible.containerized_installer.automationcontroller : Get automation controller version] ***\nincluded: /home/ec2-user/aap_install/collections/ansible_collections/ansible/containerized_installer/roles/automationcontroller/tasks/version.yml for ansible-1\n\nTASK [ansible.containerized_installer.automationcontroller : Get automation controller version] ***\nok: [ansible-1]\n\nTASK [ansible.containerized_installer.automationcontroller : Set automation controller version fact] ***\nok: [ansible-1]\n\nTASK [ansible.containerized_installer.automationcontroller : Set automation controller facts] ***\nincluded: /home/ec2-user/aap_install/collections/ansible_collections/ansible/containerized_installer/roles/automationcontroller/tasks/facts.yml for ansible-1\n\nTASK [ansible.containerized_installer.automationcontroller : Set controller hostname, port(s) and protocol] ***\nok: [ansible-1]\n\nTASK [ansible.containerized_installer.automationcontroller : Add https port to controller port list] ***\nok: [ansible-1]\n\nTASK [ansible.containerized_installer.automationcontroller : Set controller URL] ***\nok: [ansible-1]\n\nTASK [ansible.containerized_installer.automationcontroller : Add postgresql container to requires when on the same node] ***\nok: [ansible-1]\n\nTASK [ansible.containerized_installer.automationcontroller : Set automation controller volumes] ***\nok: [ansible-1]\n\nTASK [ansible.containerized_installer.automationcontroller : Set postgresql automation controller volumes] ***\nskipping: [ansible-1]\n\nTASK [ansible.containerized_installer.automationcontroller : Add postgresql to common automation controller volumes] ***\nskipping: [ansible-1]\n\nTASK [ansible.containerized_installer.automationcontroller : Set rsyslog/task/web automation controller volumes] ***\nok: [ansible-1]\n\nTASK [ansible.containerized_installer.automationcontroller : Add tls to web automation controller volumes] ***\nok: [ansible-1]\n\nTASK [ansible.containerized_installer.automationcontroller : Set systemd requires] ***\nok: [ansible-1]\n\nTASK [ansible.containerized_installer.automationcontroller : Set environment variables for recent AAP releases] ***\nok: [ansible-1]\n\nTASK [ansible.containerized_installer.automationcontroller : Set environment variables for legacy AAP releases] ***\nskipping: [ansible-1]\n\nTASK [ansible.containerized_installer.automationcontroller : Set facts for systemd services] ***\nok: [ansible-1]\n\nTASK [ansible.containerized_installer.automationcontroller : Add rsyslog to systemd services list] ***\nok: [ansible-1]\n\nTASK [ansible.containerized_installer.automationcontroller : Create the controller directories] ***\nchanged: [ansible-1] => (item=/home/ec2-user/aap/controller/etc/conf.d)\nchanged: [ansible-1] => (item=/home/ec2-user/aap/controller/data/job_execution)\nchanged: [ansible-1] => (item=/home/ec2-user/aap/controller/data/projects)\nchanged: [ansible-1] => (item=/home/ec2-user/aap/controller/data/rsyslog)\n\nTASK [ansible.containerized_installer.automationcontroller : Configure postgresql] ***\nincluded: /home/ec2-user/aap_install/collections/ansible_collections/ansible/containerized_installer/roles/automationcontroller/tasks/postgresql.yml for ansible-1\n\nTASK [ansible.containerized_installer.automationcontroller : Install python-psycopg2] ***\nchanged: [ansible-1]\n\nTASK [ansible.containerized_installer.automationcontroller : Wait for postgresql to be ready] ***\nok: [ansible-1]\n\nTASK [ansible.containerized_installer.automationcontroller : Create the automation controller postgresql user] ***\nchanged: [ansible-1]\n\nTASK [ansible.containerized_installer.automationcontroller : Grant the automation controller role to postgresql admin user] ***\nchanged: [ansible-1]\n\nTASK [ansible.containerized_installer.automationcontroller : Create the automation controller postgresql database] ***\nchanged: [ansible-1]\n\nTASK [ansible.containerized_installer.automationcontroller : Configure TLS] ****\nincluded: /home/ec2-user/aap_install/collections/ansible_collections/ansible/containerized_installer/roles/automationcontroller/tasks/tls.yml for ansible-1\n\nTASK [ansible.containerized_installer.automationcontroller : Install python-cryptography] ***\nok: [ansible-1]\n\nTASK [ansible.containerized_installer.automationcontroller : Check the current controller private key] ***\nok: [ansible-1]\n\nTASK [ansible.containerized_installer.automationcontroller : Generate a private key] ***\nAn exception occurred during task execution. To see the full traceback, use -vvv. The error was: ImportError: cannot import name 'HAS_PYOPENSSL' from 'ansible_collections.community.crypto.plugins.module_utils.crypto.basic' (/tmp/ansible_community.crypto.openssl_privatekey_payload_kvdi1dwb/ansible_community.crypto.openssl_privatekey_payload.zip/ansible_collections/community/crypto/plugins/module_utils/crypto/basic.py)\nfatal: [ansible-1]: FAILED! => {"changed": false, "module_stderr": "Traceback (most recent call last):\n File \"/home/ec2-user/.ansible/tmp/ansible-tmp-1702932569.7796526-35180-169932141282705/AnsiballZ_openssl_privatekey.py\", line 107, in \n _ansiballz_main()\n File \"/home/ec2-user/.ansible/tmp/ansible-tmp-1702932569.7796526-35180-169932141282705/AnsiballZ_openssl_privatekey.py\", line 99, in _ansiballz_main\n invoke_module(zipped_mod, temp_path, ANSIBALLZ_PARAMS)\n File \"/home/ec2-user/.ansible/tmp/ansible-tmp-1702932569.7796526-35180-169932141282705/AnsiballZ_openssl_privatekey.py\", line 47, in invoke_module\n runpy.run_module(mod_name='ansible_collections.community.crypto.plugins.modules.openssl_privatekey', init_globals=dict(_module_fqn='ansible_collections.community.crypto.plugins.modules.openssl_privatekey', _modlib_path=modlib_path),\n File \"/usr/lib64/python3.9/runpy.py\", line 225, in run_module\n return _run_module_code(code, init_globals, run_name, mod_spec)\n File \"/usr/lib64/python3.9/runpy.py\", line 97, in _run_module_code\n _run_code(code, mod_globals, init_globals,\n File \"/usr/lib64/python3.9/runpy.py\", line 87, in _run_code\n exec(code, run_globals)\n File \"/tmp/ansible_community.crypto.openssl_privatekey_payload_kvdi1dwb/ansible_community.crypto.openssl_privatekey_payload.zip/ansible_collections/community/crypto/plugins/modules/openssl_privatekey.py\", line 173, in \n File \"\", line 259, in load_module\n File \"/tmp/ansible_community.crypto.openssl_privatekey_payload_kvdi1dwb/ansible_community.crypto.openssl_privatekey_payload.zip/ansible_collections/community/crypto/plugins/module_utils/crypto/init.py\", line 27, in \nImportError: cannot import name 'HAS_PYOPENSSL' from 'ansible_collections.community.crypto.plugins.module_utils.crypto.basic' (/tmp/ansible_community.crypto.openssl_privatekey_payload_kvdi1dwb/ansible_community.crypto.openssl_privatekey_payload.zip/ansible_collections/community/crypto/plugins/module_utils/crypto/basic.py)\n", "module_stdout": "", "msg": "MODULE FAILURE\nSee stdout/stderr for the exact error", "rc": 1}\n\nPLAY RECAP *********************************************************************\nansible-1 : ok=81 changed=30 unreachable=0 failed=1 skipped=24 rescued=0 ignored=0 \nlocalhost : ok=14 changed=0 unreachable=0 failed=0 skipped=14 rescued=0 ignored=0 ", "stdout_lines": ["", "PLAY [Preflight checks] ********************************************************", "", "TASK [Gather facts] ************************************************************", "ok: [localhost]", "", "TASK [ansible.containerized_installer.common : Test for ostree-based OS] *******", "ok: [localhost]", "", "TASK [ansible.containerized_installer.common : Set ostree-based OS fact] *******", "ok: [localhost]", "", "TASK [ansible.containerized_installer.preflight : Ensure registry username and password are provided] ***", "skipping: [localhost]", "", "TASK [ansible.containerized_installer.preflight : Ensure only one managed database] ***", "ok: [localhost] => {", " "changed": false,", " "msg": "All assertions passed"", "}", "", "TASK [ansible.containerized_installer.preflight : Ensure postgresql admin password is provided] ***", "ok: [localhost] => {", " "changed": false,", " "msg": "All assertions passed"", "}", "", "TASK [ansible.containerized_installer.preflight : Ensure postgresql admin user is provided] ***", "skipping: [localhost]", "", "TASK [ansible.containerized_installer.preflight : Ensure controller admin password is provided] ***", "ok: [localhost] => {", " "changed": false,", " "msg": "All assertions passed"", "}", "", "TASK [ansible.containerized_installer.preflight : Ensure controller postgresql host and password are provided] ***", "ok: [localhost] => {", " "changed": false,", " "msg": "All assertions passed"", "}", "", "TASK [ansible.containerized_installer.preflight : Ensure hub admin password is provided] ***", "skipping: [localhost]", "", "TASK [ansible.containerized_installer.preflight : Ensure hub postgresql host and password are provided] ***", "skipping: [localhost]", "", "TASK [ansible.containerized_installer.preflight : Ensure that Automation Hub LDAP parameters are specified when LDAP backend is enabled] ***", "skipping: [localhost]", "", "TASK [ansible.containerized_installer.preflight : Include eda checks] **********", "skipping: [localhost]", "", "TASK [ansible.containerized_installer.preflight : Ensure address for shared hub data storage is provided for multi-instance] ***", "skipping: [localhost]", "", "TASK [ansible.containerized_installer.preflight : Ensure bundle_dir is provided] ***", "ok: [localhost] => {", " "changed": false,", " "msg": "All assertions passed"", "}", "", "TASK [ansible.containerized_installer.preflight : Check the license file presence] ***", "ok: [localhost]", "", "TASK [ansible.containerized_installer.preflight : Validate that the license file exists] ***", "ok: [localhost] => {", " "changed": false,", " "msg": "All assertions passed"", "}", "", "TASK [ansible.containerized_installer.preflight : Ensure controller license file is provided] ***", "ok: [localhost] => {", " "changed": false,", " "msg": "All assertions passed"", "}", "", "TASK [ansible.containerized_installer.preflight : Ensure controller postinstall dir is provided] ***", "ok: [localhost] => {", " "changed": false,", " "msg": "All assertions passed"", "}", "", "TASK [ansible.containerized_installer.preflight : Check the controller postinstall directory] ***", "ok: [localhost]", "", "TASK [ansible.containerized_installer.preflight : Validate that the postinstall directory exists] ***", "ok: [localhost] => {", " "changed": false,", " "msg": "All assertions passed"", "}", "", "TASK [ansible.containerized_installer.preflight : Gather local architecture fact] ***", "skipping: [localhost]", "", "TASK [ansible.containerized_installer.preflight : Check local architecture] ****", "skipping: [localhost]", "", "TASK [ansible.containerized_installer.preflight : Gather remote controller architecture facts] ***", "skipping: [localhost] => (item=ansible-1) ", "skipping: [localhost]", "", "TASK [ansible.containerized_installer.preflight : Check remote controller architecture] ***", "skipping: [localhost] => (item=ansible-1) ", "skipping: [localhost]", "", "TASK [ansible.containerized_installer.preflight : Check EE extra images structure] ***", "skipping: [localhost]", "", "TASK [ansible.containerized_installer.preflight : Check the postgresql_effective_cache_size format] ***", "skipping: [localhost]", "", "TASK [ansible.containerized_installer.preflight : Check the postgresql_shared_buffers format] ***", "skipping: [localhost]", "", "PLAY [Install common container components] *************************************", "", "TASK [Gather facts] ************************************************************", "ok: [ansible-1]", "", "TASK [Gather regular user id, uid and home dir] ********************************", "ok: [ansible-1]", "", "TASK [ansible.containerized_installer.common : Ensure remote user is non root] ***", "ok: [ansible-1] => {", " "changed": false,", " "msg": "All assertions passed"", "}", "", "TASK [ansible.containerized_installer.common : Get service facts] **************", "ok: [ansible-1]", "", "TASK [ansible.containerized_installer.common : Configure sub UID/GIDs] *********", "included: /home/ec2-user/aap_install/collections/ansible_collections/ansible/containerized_installer/roles/common/tasks/subids.yml for ansible-1", "", "TASK [ansible.containerized_installer.common : Ensure user has enough subuids in namespace] ***", "ok: [ansible-1]", "", "TASK [ansible.containerized_installer.common : Ensure user has enough subugids in namespace] ***", "ok: [ansible-1]", "", "TASK [ansible.containerized_installer.common : Run ostree tasks] ***************", "included: /home/ec2-user/aap_install/collections/ansible_collections/ansible/containerized_installer/roles/common/tasks/ostree.yml for ansible-1", "", "TASK [ansible.containerized_installer.common : Test for ostree-based OS] *******", "ok: [ansible-1]", "", "TASK [ansible.containerized_installer.common : Set ostree-based OS fact] *******", "ok: [ansible-1]", "", "TASK [ansible.containerized_installer.common : Get package Facts] **************", "skipping: [ansible-1]", "", "TASK [ansible.containerized_installer.common : Ensure container tools packages are present] ***", "skipping: [ansible-1] => (item=crun) ", "skipping: [ansible-1] => (item=podman) ", "skipping: [ansible-1] => (item=slirp4netns) ", "skipping: [ansible-1] => (item=fuse-overlayfs) ", "skipping: [ansible-1]", "", "TASK [ansible.containerized_installer.common : Ensure python3-cryptography and python3-psycopg2 python packages are present] ***", "skipping: [ansible-1]", "", "TASK [ansible.containerized_installer.common : Ensure python3-firewall package is present] ***", "skipping: [ansible-1]", "", "TASK [ansible.containerized_installer.common : Install container tools] ********", "changed: [ansible-1]", "", "TASK [ansible.containerized_installer.common : Create the containers config directory] ***", "changed: [ansible-1]", "", "TASK [ansible.containerized_installer.common : Configure podman runtime with crun] ***", "changed: [ansible-1]", "", "TASK [ansible.containerized_installer.common : Configure podman execution plane] ***", "included: /home/ec2-user/aap_install/collections/ansible_collections/ansible/containerized_installer/roles/common/tasks/executionplane.yml for ansible-1", "", "TASK [ansible.containerized_installer.common : Create the custom podman rootless storage folder] ***", "changed: [ansible-1]", "", "TASK [ansible.containerized_installer.common : Create custom podman storage.conf] ***", "changed: [ansible-1]", "", "TASK [ansible.containerized_installer.common : Create directory for custom podman service configuration] ***", "changed: [ansible-1]", "", "TASK [ansible.containerized_installer.common : Configure podman service] *******", "changed: [ansible-1]", "", "TASK [ansible.containerized_installer.common : Enable podman socket] ***********", "changed: [ansible-1]", "", "TASK [ansible.containerized_installer.common : Create podman custom command] ***", "changed: [ansible-1]", "", "TASK [ansible.containerized_installer.common : Enable lingering for ansible_user] ***", "changed: [ansible-1]", "", "TASK [ansible.containerized_installer.common : Include registry tasks] *********", "skipping: [ansible-1]", "", "TASK [ansible.containerized_installer.common : Include container image tasks] ***", "included: /home/ec2-user/aap_install/collections/ansible_collections/ansible/containerized_installer/roles/common/tasks/images.yml for ansible-1", "", "TASK [ansible.containerized_installer.common : Set full container images URL] ***", "ok: [ansible-1]", "", "TASK [ansible.containerized_installer.common : Add controller images to the list] ***", "ok: [ansible-1]", "", "TASK [ansible.containerized_installer.common : Add eda images to the list] *****", "skipping: [ansible-1]", "", "TASK [ansible.containerized_installer.common : Add hub images to the list] *****", "skipping: [ansible-1]", "", "TASK [ansible.containerized_installer.common : Add redis image to the list] ****", "ok: [ansible-1]", "", "TASK [ansible.containerized_installer.common : Add postgresql image to the list] ***", "ok: [ansible-1]", "", "TASK [ansible.containerized_installer.common : Add DE images to the list] ******", "skipping: [ansible-1]", "", "TASK [ansible.containerized_installer.common : Add EE images to the list] ******", "ok: [ansible-1]", "", "TASK [ansible.containerized_installer.common : Add ee-29 to the list] **********", "skipping: [ansible-1]", "", "TASK [ansible.containerized_installer.common : Set de_extra_images fact] *******", "skipping: [ansible-1]", "", "TASK [ansible.containerized_installer.common : Add extra DE images to the ee list] ***", "skipping: [ansible-1]", "", "TASK [ansible.containerized_installer.common : Set ee_extra_images fact] *******", "skipping: [ansible-1]", "", "TASK [ansible.containerized_installer.common : Add extra EE images to the ee list] ***", "skipping: [ansible-1]", "", "TASK [ansible.containerized_installer.common : Install compress package] *******", "ok: [ansible-1]", "", "TASK [ansible.containerized_installer.common : Create temporary directory for container tarballs] ***", "changed: [ansible-1]", "", "TASK [ansible.containerized_installer.common : Copy bundled container images] ***", "changed: [ansible-1]", "", "TASK [ansible.containerized_installer.common : Uncompress bundled container images] ***", "changed: [ansible-1] => (item=registry.redhat.io/ansible-automation-platform-24/controller-rhel8:latest)", "changed: [ansible-1] => (item=registry.redhat.io/ansible-automation-platform-24/ee-supported-rhel8:latest)", "changed: [ansible-1] => (item=registry.redhat.io/rhel8/redis-6:latest)", "changed: [ansible-1] => (item=registry.redhat.io/rhel8/postgresql-13:latest)", "changed: [ansible-1] => (item=registry.redhat.io/ansible-automation-platform-24/ee-minimal-rhel8:latest)", "", "TASK [ansible.containerized_installer.common : Load the controlplane container images] ***", "changed: [ansible-1] => (item=registry.redhat.io/ansible-automation-platform-24/controller-rhel8:latest)", "changed: [ansible-1] => (item=registry.redhat.io/ansible-automation-platform-24/ee-supported-rhel8:latest)", "changed: [ansible-1] => (item=registry.redhat.io/rhel8/redis-6:latest)", "changed: [ansible-1] => (item=registry.redhat.io/rhel8/postgresql-13:latest)", "", "TASK [ansible.containerized_installer.common : Load the executionplane container images] ***", "changed: [ansible-1] => (item=registry.redhat.io/ansible-automation-platform-24/ee-minimal-rhel8:latest)", "changed: [ansible-1] => (item=registry.redhat.io/ansible-automation-platform-24/ee-supported-rhel8:latest)", "", "TASK [ansible.containerized_installer.common : Set io.containers.autoupdate=local label] ***", "ok: [ansible-1]", "", "TASK [ansible.containerized_installer.common : Remove temporary directory] *****", "changed: [ansible-1]", "", "TASK [ansible.containerized_installer.common : Pull the controlplane container images] ***", "skipping: [ansible-1] => (item=registry.redhat.io/ansible-automation-platform-24/controller-rhel8:latest) ", "skipping: [ansible-1] => (item=registry.redhat.io/ansible-automation-platform-24/ee-supported-rhel8:latest) ", "skipping: [ansible-1] => (item=registry.redhat.io/rhel8/redis-6:latest) ", "skipping: [ansible-1] => (item=registry.redhat.io/rhel8/postgresql-13:latest) ", "skipping: [ansible-1]", "", "TASK [ansible.containerized_installer.common : Pull the executionplane container images] ***", "skipping: [ansible-1] => (item=registry.redhat.io/ansible-automation-platform-24/ee-minimal-rhel8:latest) ", "skipping: [ansible-1] => (item=registry.redhat.io/ansible-automation-platform-24/ee-supported-rhel8:latest) ", "skipping: [ansible-1]", "", "TASK [ansible.containerized_installer.common : Set io.containers.autoupdate=registry label] ***", "skipping: [ansible-1]", "", "TASK [ansible.containerized_installer.common : Configure firewalld] ************", "included: /home/ec2-user/aap_install/collections/ansible_collections/ansible/containerized_installer/roles/common/tasks/firewalld.yml for ansible-1", "", "TASK [ansible.containerized_installer.common : Ensure firewalld is started] ****", "skipping: [ansible-1]", "", "TASK [ansible.containerized_installer.common : Install python-firewall] ********", "skipping: [ansible-1]", "", "PLAY [Install the database] ****************************************************", "", "TASK [ansible.containerized_installer.postgresql : Set postgresql facts] *******", "included: /home/ec2-user/aap_install/collections/ansible_collections/ansible/containerized_installer/roles/postgresql/tasks/facts.yml for ansible-1", "", "TASK [ansible.containerized_installer.postgresql : Set effective cache size fact for dedicated database node] ***", "skipping: [ansible-1]", "", "TASK [ansible.containerized_installer.postgresql : Set shared buffers fact for dedicated database node] ***", "skipping: [ansible-1]", "", "TASK [ansible.containerized_installer.postgresql : Set effective cache size fact for collocated database node] ***", "ok: [ansible-1]", "", "TASK [ansible.containerized_installer.postgresql : Set shared buffers fact for collocated database node] ***", "ok: [ansible-1]", "", "TASK [ansible.containerized_installer.postgresql : Configure podman secrets] ***", "included: /home/ec2-user/aap_install/collections/ansible_collections/ansible/containerized_installer/roles/postgresql/tasks/secrets.yml for ansible-1", "", "TASK [ansible.containerized_installer.postgresql : Create the postgresql admin password secret] ***", "changed: [ansible-1]", "", "TASK [ansible.containerized_installer.postgresql : Configure podman volumes] ***", "included: /home/ec2-user/aap_install/collections/ansible_collections/ansible/containerized_installer/roles/postgresql/tasks/volumes.yml for ansible-1", "", "TASK [ansible.containerized_installer.postgresql : Create the postgresql data volume] ***", "changed: [ansible-1]", "", "TASK [ansible.containerized_installer.postgresql : Configure containers] *******", "included: /home/ec2-user/aap_install/collections/ansible_collections/ansible/containerized_installer/roles/postgresql/tasks/containers.yml for ansible-1", "", "TASK [ansible.containerized_installer.postgresql : Create the postgresql container] ***", "changed: [ansible-1]", "", "TASK [ansible.containerized_installer.postgresql : Configure systemd] **********", "included: /home/ec2-user/aap_install/collections/ansible_collections/ansible/containerized_installer/roles/postgresql/tasks/systemd.yml for ansible-1", "", "TASK [ansible.containerized_installer.postgresql : Ensure postgresql container is enabled and started] ***", "changed: [ansible-1]", "", "TASK [ansible.containerized_installer.postgresql : Add firewalld rules] ********", "included: /home/ec2-user/aap_install/collections/ansible_collections/ansible/containerized_installer/roles/postgresql/tasks/firewalld.yml for ansible-1", "", "TASK [ansible.containerized_installer.postgresql : Manage postgresql firewalld port] ***", "skipping: [ansible-1]", "", "PLAY [Install the redis cache] *************************************************", "", "TASK [ansible.containerized_installer.redis : Configure podman volumes] ********", "included: /home/ec2-user/aap_install/collections/ansible_collections/ansible/containerized_installer/roles/redis/tasks/volumes.yml for ansible-1", "", "TASK [ansible.containerized_installer.redis : Create the redis data volume] ****", "changed: [ansible-1] => (item=redis_data)", "changed: [ansible-1] => (item=redis_etc)", "changed: [ansible-1] => (item=redis_run)", "", "TASK [ansible.containerized_installer.redis : Create the redis configuration] ***", "changed: [ansible-1]", "", "TASK [ansible.containerized_installer.redis : Configure containers] ************", "included: /home/ec2-user/aap_install/collections/ansible_collections/ansible/containerized_installer/roles/redis/tasks/containers.yml for ansible-1", "", "TASK [ansible.containerized_installer.redis : Create the redis container] ******", "changed: [ansible-1]", "", "TASK [ansible.containerized_installer.redis : Configure systemd] ***************", "included: /home/ec2-user/aap_install/collections/ansible_collections/ansible/containerized_installer/roles/redis/tasks/systemd.yml for ansible-1", "", "TASK [ansible.containerized_installer.redis : Ensure redis container is enabled and started] ***", "changed: [ansible-1]", "", "RUNNING HANDLER [ansible.containerized_installer.redis : Restart redis] ********", "changed: [ansible-1]", "", "PLAY [Install the Automation Controller] ***************************************", "", "TASK [ansible.containerized_installer.automationcontroller : Get automation controller version] ***", "included: /home/ec2-user/aap_install/collections/ansible_collections/ansible/containerized_installer/roles/automationcontroller/tasks/version.yml for ansible-1", "", "TASK [ansible.containerized_installer.automationcontroller : Get automation controller version] ***", "ok: [ansible-1]", "", "TASK [ansible.containerized_installer.automationcontroller : Set automation controller version fact] ***", "ok: [ansible-1]", "", "TASK [ansible.containerized_installer.automationcontroller : Set automation controller facts] ***", "included: /home/ec2-user/aap_install/collections/ansible_collections/ansible/containerized_installer/roles/automationcontroller/tasks/facts.yml for ansible-1", "", "TASK [ansible.containerized_installer.automationcontroller : Set controller hostname, port(s) and protocol] ***", "ok: [ansible-1]", "", "TASK [ansible.containerized_installer.automationcontroller : Add https port to controller port list] ***", "ok: [ansible-1]", "", "TASK [ansible.containerized_installer.automationcontroller : Set controller URL] ***", "ok: [ansible-1]", "", "TASK [ansible.containerized_installer.automationcontroller : Add postgresql container to requires when on the same node] ***", "ok: [ansible-1]", "", "TASK [ansible.containerized_installer.automationcontroller : Set automation controller volumes] ***", "ok: [ansible-1]", "", "TASK [ansible.containerized_installer.automationcontroller : Set postgresql automation controller volumes] ***", "skipping: [ansible-1]", "", "TASK [ansible.containerized_installer.automationcontroller : Add postgresql to common automation controller volumes] ***", "skipping: [ansible-1]", "", "TASK [ansible.containerized_installer.automationcontroller : Set rsyslog/task/web automation controller volumes] ***", "ok: [ansible-1]", "", "TASK [ansible.containerized_installer.automationcontroller : Add tls to web automation controller volumes] ***", "ok: [ansible-1]", "", "TASK [ansible.containerized_installer.automationcontroller : Set systemd requires] ***", "ok: [ansible-1]", "", "TASK [ansible.containerized_installer.automationcontroller : Set environment variables for recent AAP releases] ***", "ok: [ansible-1]", "", "TASK [ansible.containerized_installer.automationcontroller : Set environment variables for legacy AAP releases] ***", "skipping: [ansible-1]", "", "TASK [ansible.containerized_installer.automationcontroller : Set facts for systemd services] ***", "ok: [ansible-1]", "", "TASK [ansible.containerized_installer.automationcontroller : Add rsyslog to systemd services list] ***", "ok: [ansible-1]", "", "TASK [ansible.containerized_installer.automationcontroller : Create the controller directories] ***", "changed: [ansible-1] => (item=/home/ec2-user/aap/controller/etc/conf.d)", "changed: [ansible-1] => (item=/home/ec2-user/aap/controller/data/job_execution)", "changed: [ansible-1] => (item=/home/ec2-user/aap/controller/data/projects)", "changed: [ansible-1] => (item=/home/ec2-user/aap/controller/data/rsyslog)", "", "TASK [ansible.containerized_installer.automationcontroller : Configure postgresql] ***", "included: /home/ec2-user/aap_install/collections/ansible_collections/ansible/containerized_installer/roles/automationcontroller/tasks/postgresql.yml for ansible-1", "", "TASK [ansible.containerized_installer.automationcontroller : Install python-psycopg2] ***", "changed: [ansible-1]", "", "TASK [ansible.containerized_installer.automationcontroller : Wait for postgresql to be ready] ***", "ok: [ansible-1]", "", "TASK [ansible.containerized_installer.automationcontroller : Create the automation controller postgresql user] ***", "changed: [ansible-1]", "", "TASK [ansible.containerized_installer.automationcontroller : Grant the automation controller role to postgresql admin user] ***", "changed: [ansible-1]", "", "TASK [ansible.containerized_installer.automationcontroller : Create the automation controller postgresql database] ***", "changed: [ansible-1]", "", "TASK [ansible.containerized_installer.automationcontroller : Configure TLS] ****", "included: /home/ec2-user/aap_install/collections/ansible_collections/ansible/containerized_installer/roles/automationcontroller/tasks/tls.yml for ansible-1", "", "TASK [ansible.containerized_installer.automationcontroller : Install python-cryptography] ***", "ok: [ansible-1]", "", "TASK [ansible.containerized_installer.automationcontroller : Check the current controller private key] ***", "ok: [ansible-1]", "", "TASK [ansible.containerized_installer.automationcontroller : Generate a private key] ***", "An exception occurred during task execution. To see the full traceback, use -vvv. The error was: ImportError: cannot import name 'HAS_PYOPENSSL' from 'ansible_collections.community.crypto.plugins.module_utils.crypto.basic' (/tmp/ansible_community.crypto.openssl_privatekey_payload_kvdi1dwb/ansible_community.crypto.openssl_privatekey_payload.zip/ansible_collections/community/crypto/plugins/module_utils/crypto/basic.py)", "fatal: [ansible-1]: FAILED! => {"changed": false, "module_stderr": "Traceback (most recent call last):\n File \"/home/ec2-user/.ansible/tmp/ansible-tmp-1702932569.7796526-35180-169932141282705/AnsiballZ_openssl_privatekey.py\", line 107, in \n _ansiballz_main()\n File \"/home/ec2-user/.ansible/tmp/ansible-tmp-1702932569.7796526-35180-169932141282705/AnsiballZ_openssl_privatekey.py\", line 99, in _ansiballz_main\n invoke_module(zipped_mod, temp_path, ANSIBALLZ_PARAMS)\n File \"/home/ec2-user/.ansible/tmp/ansible-tmp-1702932569.7796526-35180-169932141282705/AnsiballZ_openssl_privatekey.py\", line 47, in invoke_module\n runpy.run_module(mod_name='ansible_collections.community.crypto.plugins.modules.openssl_privatekey', init_globals=dict(_module_fqn='ansible_collections.community.crypto.plugins.modules.openssl_privatekey', _modlib_path=modlib_path),\n File \"/usr/lib64/python3.9/runpy.py\", line 225, in run_module\n return _run_module_code(code, init_globals, run_name, mod_spec)\n File \"/usr/lib64/python3.9/runpy.py\", line 97, in _run_module_code\n _run_code(code, mod_globals, init_globals,\n File \"/usr/lib64/python3.9/runpy.py\", line 87, in _run_code\n exec(code, run_globals)\n File \"/tmp/ansible_community.crypto.openssl_privatekey_payload_kvdi1dwb/ansible_community.crypto.openssl_privatekey_payload.zip/ansible_collections/community/crypto/plugins/modules/openssl_privatekey.py\", line 173, in \n File \"\", line 259, in load_module\n File \"/tmp/ansible_community.crypto.openssl_privatekey_payload_kvdi1dwb/ansible_community.crypto.openssl_privatekey_payload.zip/ansible_collections/community/crypto/plugins/module_utils/crypto/init.py\", line 27, in \nImportError: cannot import name 'HAS_PYOPENSSL' from 'ansible_collections.community.crypto.plugins.module_utils.crypto.basic' (/tmp/ansible_community.crypto.openssl_privatekey_payload_kvdi1dwb/ansible_community.crypto.openssl_privatekey_payload.zip/ansible_collections/community/crypto/plugins/module_utils/crypto/basic.py)\n", "module_stdout": "", "msg": "MODULE FAILURE\nSee stdout/stderr for the exact error", "rc": 1}", "", "PLAY RECAP *********************************************************************", "ansible-1 : ok=81 changed=30 unreachable=0 failed=1 skipped=24 rescued=0 ignored=0 ", "localhost : ok=14 changed=0 unreachable=0 failed=0 skipped=14 rescued=0 ignored=0 "]}
ASYNC POLL on fiercesw-aap-student5-ansible-1: jid=j714881953268.29023 started=1 finished=0
...