execution-enviroment don't find redhat.rhel_system_roles

Posted on

Hi Gurus,

i try to call a role like this:

  • name: Example of a simple storage device
    hosts: 10.0.4.3
    roles:
    • name: redhat.rhel_system_roles.storage
      storage_volumes:
      • name: extra_disk_h
        type: disk
        disks:
        • /dev/sdh
          fs_type: xfs
          mount_options: "rw,uid=ansible,gid=ansible"

mount_point: /mnt/extra_disk_h

ansible.cfg
[defaults]
inventory=./inventory
collections_paths=/tmp:/home/ansible/ansible/collections:/home/ansible/.ansible/collections:/usr/share/ansible/collections/ansible_collections
#

ansible.yml

ansible-navigator:
execution-environment:
image: registry.redhat.io/ansible-automation-platform-22/ee-supported-rhel8:latest
pull:
policy: missing
playbook-artifact:
enable: false

i have installed
dnf info rhel-system-roles
Aggiornamento repository di Subscription Management.
Ultima verifica della scadenza dei metadati: 2:46:18 fa il lun 20 nov 2023, 14:50:43.
Pacchetti installati
Name : rhel-system-roles
Version : 1.22.0
Rilascio : 2.el9
Architecture : noarch
Size : 11 M
Sorgente : rhel-system-roles-1.22.0-2.el9.src.rpm
Repository : @System
Dal repo : rhel-9-for-x86_64-appstream-rpms
Summary : Set of interfaces for unified system management
URL : https://github.com/linux-system-roles
Licenza : GPLv3+ and MIT and BSD and Python
Description : Collection of Ansible roles and modules that provide a stable and
: consistent configuration interface for managing multiple versions
: of Red Hat Enterprise Linux.

using :
ansible-navigator run mount1.yml -m stdout --ee false
it works without errors

using :
ansible-navigator run mount1.yml -m stdout
it fails and i have the following on ansible-navigator.log

2023-11-20T16:26:45.924673+00:00 CRITICAL 'ansible_navigator.actions.run_playbook._handle_message' Unhandled message from runner queue, discarded: {'event': 'verbose', 'uuid': 'a70cd641-7a38-4e85-af84-90ebe69290ed', 'counter': 1, 'stdout': "\x1b[0;31mERROR! the role 'redhat.rhel_system_roles.storage' was not found in /home/ansible/ansible/roles:/home/runner/.ansible/roles:/usr/share/ansible/roles:/etc/ansible/roles:/home/ansible/ansible\x1b[0m", 'start_line': 0, 'end_line': 1, 'runner_ident': 'dc574f9f-4162-4de2-a6ce-719329dda95c', 'created': '2023-11-20T16:26:45.878677'}
2023-11-20T16:26:45.930732+00:00 CRITICAL 'ansible_navigator.actions.run_playbook._handle_message' Unhandled message from runner queue, discarded: {'event': 'verbose', 'uuid': '565fc7d9-a9db-4f39-ba06-7074c560814a', 'counter': 2, 'stdout': '\x1b[0;31m\x1b[0m', 'start_line': 1, 'end_line': 2, 'runner_ident': 'dc574f9f-4162-4de2-a6ce-719329dda95c', 'created': '2023-11-20T16:26:45.880630'}
2023-11-20T16:26:45.932715+00:00 CRITICAL 'ansible_navigator.actions.run_playbook._handle_message' Unhandled message from runner queue, discarded: {'event': 'verbose', 'uuid': '90c8b1a8-cd16-44e7-b125-ac8ac013363c', 'counter': 3, 'stdout': "\x1b[0;31mThe error appears to be in '/home/ansible/ansible/mount1.yml': line 6, column 7, but may\x1b[0m", 'start_line': 2, 'end_line': 3, 'runner_ident': 'dc574f9f-4162-4de2-a6ce-719329dda95c', 'created': '2023-11-20T16:26:45.881224'}
2023-11-20T16:26:45.932783+00:00 CRITICAL 'ansible_navigator.actions.run_playbook._handle_message' Unhandled message from runner queue, discarded: {'event': 'verbose', 'uuid': '7a05d687-f0f0-480a-8d90-c6ea2eb8daa4', 'counter': 4, 'stdout': '\x1b[0;31mbe elsewhere in the file depending on the exact syntax problem.\x1b[0m', 'start_line': 3, 'end_line': 4, 'runner_ident': 'dc574f9f-4162-4de2-a6ce-719329dda95c', 'created': '2023-11-20T16:26:45.881931'}
2023-11-20T16:26:45.932829+00:00 CRITICAL 'ansible_navigator.actions.run_playbook._handle_message' Unhandled message from runner queue, discarded: {'event': 'verbose', 'uuid': 'bbdeb6b0-3968-4176-9132-9a64b0e68d97', 'counter': 5, 'stdout': '\x1b[0;31m\x1b[0m', 'start_line': 4, 'end_line': 5, 'runner_ident': 'dc574f9f-4162-4de2-a6ce-719329dda95c', 'created': '2023-11-20T16:26:45.882210'}
2023-11-20T16:26:45.932877+00:00 CRITICAL 'ansible_navigator.actions.run_playbook._handle_message' Unhandled message from runner queue, discarded: {'event': 'verbose', 'uuid': 'f9a21576-a6b8-425c-8444-5145bca6c41e', 'counter': 6, 'stdout': '\x1b[0;31mThe offending line appears to be:\x1b[0m', 'start_line': 5, 'end_line': 6, 'runner_ident': 'dc574f9f-4162-4de2-a6ce-719329dda95c', 'created': '2023-11-20T16:26:45.882496'}
2023-11-20T16:26:45.932920+00:00 CRITICAL 'ansible_navigator.actions.run_playbook._handle_message' Unhandled message from runner queue, discarded: {'event': 'verbose', 'uuid': '232c328c-084b-4f15-9ade-ba96fe7865b5', 'counter': 7, 'stdout': '\x1b[0;31m\x1b[0m', 'start_line': 6, 'end_line': 7, 'runner_ident': 'dc574f9f-4162-4de2-a6ce-719329dda95c', 'created': '2023-11-20T16:26:45.882564'}
2023-11-20T16:26:45.934288+00:00 CRITICAL 'ansible_navigator.actions.run_playbook._handle_message' Unhandled message from runner queue, discarded: {'event': 'verbose', 'uuid': 'adaf976b-2696-4850-a60e-e15982e63ee4', 'counter': 8, 'stdout': '\x1b[0;31m# - name: /home/ansible/ansible/collections/redhat/rhel_system_roles/roles/storage\x1b[0m', 'start_line': 7, 'end_line': 8, 'runner_ident': 'dc574f9f-4162-4de2-a6ce-719329dda95c', 'created': '2023-11-20T16:26:45.882608'}
2023-11-20T16:26:45.934405+00:00 CRITICAL 'ansible_navigator.actions.run_playbook._handle_message' Unhandled message from runner queue, discarded: {'event': 'verbose', 'uuid': '3c4b8408-f21b-4020-bdef-dfd4abd17789', 'counter': 9, 'stdout': '\x1b[0;31m - name: redhat.rhel_system_roles.storage\x1b[0m', 'start_line': 8, 'end_line': 9, 'runner_ident': 'dc574f9f-4162-4de2-a6ce-719329dda95c', 'created': '2023-11-20T16:26:45.882651'}
2023-11-20T16:26:45.935634+00:00 CRITICAL 'ansible_navigator.actions.run_playbook._handle_message' Unhandled message from runner queue, discarded: {'event': 'verbose', 'uuid': '7fa36391-5705-4a8e-a234-97d8f74cb5ce', 'counter': 10, 'stdout': '\x1b[0;31m ^ here\x1b[0m', 'start_line': 9, 'end_line': 10, 'runner_ident': 'dc574f9f-4162-4de2-a6ce-719329dda95c', 'created': '2023-11-20T16:26:45.882696'}
~

[ansible@rhel9.0 ansible]$ uname -a
Linux rhel9.0 5.14.0-284.30.1.el9_2.x86_64 #1 SMP PREEMPT_DYNAMIC Fri Aug 25 09:13:12 EDT 2023 x86_64 x86_64 x86_64 GNU/Linux
[ansible@rhel9.0 ansible]$ python --version
Python 3.9.18
[ansible@rhel9.0 ansible]$ ansible --version
ansible [core 2.14.2]
config file = /home/ansible/ansible/ansible.cfg
configured module search path = ['/home/ansible/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
ansible python module location = /usr/lib/python3.11/site-packages/ansible
ansible collection location = /tmp:/home/ansible/ansible/collections:/home/ansible/.ansible/collections:/usr/share/ansible/collections/ansible_collections
executable location = /usr/bin/ansible
python version = 3.11.2 (main, Sep 12 2023, 00:00:00) [GCC 11.3.1 20221121 (Red Hat 11.3.1-4)] (/usr/bin/python3.11)
jinja version = 3.1.2
libyaml = True
[ansible@rhel9.0 ansible]$ ansible-navigator --version
ansible-navigator 2.1.0
[ansible@rhel9.0 ansible]$

Responses