So, after digging into the issue. It occurs because ansible does not discover and define `discovered_interpreter_python` fact for Rocky Linux.
For ceph deployment we leverage ceph-ansible project. There's assumption made, that `discovered_interpreter_python` is always defined, which is not the case for Rocky. That's why you receive mentioned failure.
I believe this is quite valid ansible bug rather then openstack-ansible, as we can't really fix neither ceph-ansible logic nor ansibles. So I will mark this bug report as Invalid.
However as a workaround you can define in /etc/openstack_deploy/group_vars/ceph_all:
So, after digging into the issue. It occurs because ansible does not discover and define `discovered_ interpreter_ python` fact for Rocky Linux.
For ceph deployment we leverage ceph-ansible project. There's assumption made, that `discovered_ interpreter_ python` is always defined, which is not the case for Rocky. That's why you receive mentioned failure.
I believe this is quite valid ansible bug rather then openstack-ansible, as we can't really fix neither ceph-ansible logic nor ansibles. So I will mark this bug report as Invalid.
However as a workaround you can define in /etc/openstack_ deploy/ group_vars/ ceph_all:
ansible_ python_ interpreter: /usr/bin/python3