Skip to content

Commit 52e11d1

Browse files
mnietojiopenshift-merge-bot[bot]
authored andcommitted
[reproducer] Use include_role for install_ca in delegated block
When import_role is used inside a delegate_to block, Ansible triggers Python interpreter discovery on the original host (hypervisor) rather than the delegate target (controller-0). If the SSH connection to the hypervisor is unavailable at that point, the task fails with UNREACHABLE. Switch to include_role which loads tasks dynamically within the delegated execution context, avoiding the interpreter discovery on the original host. Signed-off-by: Miguel Angel Nieto Jimenez <mnietoji@redhat.com>
1 parent c7a2c0e commit 52e11d1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

roles/reproducer/tasks/configure_controller.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454
loop_var: 'config'
5555

5656
- name: Install custom CA if needed
57-
ansible.builtin.import_role:
57+
ansible.builtin.include_role:
5858
name: install_ca
5959

6060
- name: RHEL repository setup for ansible-controller

0 commit comments

Comments
 (0)