When I try to connect to RH cloud the job finish with the issue below:
1:
[DEPRECATION WARNING]: ANSIBLE_CALLBACK_WHITELIST option, normalizing names to
2:
new standard, use ANSIBLE_CALLBACKS_ENABLED instead. This feature will be
3:
removed from ansible-core in version 2.15. Deprecation warnings can be disabled
4:
by setting deprecation_warnings=False in ansible.cfg.
5:
ERROR! the role ‘redhat.satellite_operations.cloud_connector’ was not found in /tmp/d20250213-2775090-i8yr3t/project/roles:/etc/ansible/roles:/usr/share/ansible/roles:/tmp/d20250213-2775090-i8yr3t/project
6:
The error appears to be in ‘/tmp/d20250213-2775090-i8yr3t/project/playbook.yml’: line 7, column 7, but may
7:
be elsewhere in the file depending on the exact syntax problem.
8:
The offending line appears to be:
9:
roles:
10:
- redhat.satellite_operations.cloud_connector
11:
^ here
12:
Exit status: 1
13:
StandardError: Job execution failed
the role ‘redhat.satellite_operations.cloud_connector’ was not found in /tmp/d20250213-2775090-w5g1f3/project/roles:/etc/ansible/roles:/usr/share/ansible/roles:/tmp/d20250213-2775090-w5g1f3/project
You need to change the FQCN from redhat.satellite_operations.cloud_connector to theforeman.operations.cloud_connector. You can install this Ansible role via RPM from Index of /plugins/nightly/el9/x86_64 or via ansible-galaxy collection install theforeman.operations on your Foreman Server.
You would have to clone the required job template and edit it. You can find which is used under Administer > Remote Execution Features. After cloning and editing, you’ll have to select this for the REX action.
Yu said “After cloning and editing, you’ll have to select this for the REX action” how to do this as I never did it ? Can you give me details about how to do please ?
1:
[DEPRECATION WARNING]: ANSIBLE_CALLBACK_WHITELIST option, normalizing names to
2:
new standard, use ANSIBLE_CALLBACKS_ENABLED instead. This feature will be
3:
removed from ansible-core in version 2.15. Deprecation warnings can be disabled
4:
by setting deprecation_warnings=False in ansible.cfg.
5:
ERROR! the role ‘theforeman.operations.cloud_connector’ was not found in /tmp/d20250213-2775090-5bq9tc/project/roles:/etc/ansible/roles:/usr/share/ansible/roles:/tmp/d20250213-2775090-5bq9tc/project
6:
The error appears to be in ‘/tmp/d20250213-2775090-5bq9tc/project/playbook.yml’: line 7, column 7, but may
7:
be elsewhere in the file depending on the exact syntax problem.
8:
The offending line appears to be:
9:
roles:
10:
- theforeman.operations.cloud_connector
11:
^ here
12:
Exit status: 1
13:
StandardError: Job execution failed
The change in the job template looks correct. Did you try to install the Ansible role via RPM? The error indicates that it’s still missing on your Foreman Server.
Try downloading the archive from Ansible Galaxy and then extract to the propose location where the REX job searches for Ansible roles. Note that I cannot test this myself right now; this is basically just an educated guess.