Description of problem: ansible-playbook -i hosts cephadm-distribute-ssh-key.yml -e cephadm_ssh_user=cephuser -e admin_node=ceph-custom-images-g9kr1f-node1-installer [DEPRECATION WARNING]: [defaults]callback_whitelist option, normalizing names to new standard, use callbacks_enabled instead. This feature will be removed from ansible-core in version 2.15. Deprecation warnings can be disabled by setting deprecation_warnings=False in ansible.cfg. ERROR! couldn't resolve module/action 'authorized_key'. This often indicates a misspelling, missing collection, or incorrect module path. The error appears to be in '/usr/share/cephadm-ansible/cephadm-distribute-ssh-key.yml': line 64, column 7, but may be elsewhere in the file depending on the exact syntax problem. The offending line appears to be: - name: allow ssh public key for {{ cephadm_ssh_user | default('root') }} account ^ here We could be wrong, but this one looks like it might be an issue with missing quotes. Always quote template expression brackets when they start a value. For instance: with_items: - {{ foo }} Should be written as: with_items: - "{{ foo }}" Running cephadm-distribute-ssh-key.yml will require ansible.posix collection package downstream. Version-Release number of selected component (if applicable): How reproducible: Always Actual results: Playbook is falling with following error. with_items: - {{ foo }} Expected results: Playbook should successfully.
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory (Moderate: Red Hat Ceph Storage 6.1 security and bug fix update), and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHSA-2023:3623