Description of problem: rolling_update.yml fails if playbook is started not from /usr/share/ceph-ansible Version-Release number of selected component (if applicable): 3.0.25-1 How reproducible: Always if not run from /usr/share/ceph-ansible Steps to Reproduce: 1. create a custom directory for inventory and all related playbook resources (as consultants usually recommend) 2. update files as required 3. ansible-playbook /usr/share/ceph-ansible/infrastructure-playbooks/rolling_update.yml -e jewel_minor_update=true -i /home/ansible/ceph-ansible/hosts Actual results: [ansible@ceph-mon1 ceph-ansible]$ ansible-playbook /usr/share/ceph-ansible/infrastructure-playbooks/rolling_update.yml -e jewel_minor_update=true -i /home/ansible/ceph-ansible/hosts ERROR! the role 'ceph-defaults' was not found in /usr/share/ceph-ansible/infrastructure-playbooks/roles:/home/ansible/ceph-ansible/roles:/usr/share/ceph-ansible/infrastructure-playbooks The error appears to have been in '/usr/share/ceph-ansible/infrastructure-playbooks/rolling_update.yml': line 118, column 7, but may be elsewhere in the file depending on the exact syntax problem. The offending line appears to be: roles: - ceph-defaults ^ here Expected results: Picking up the proper (default) path for installation or requiring a custom location specified. Additional info: Usually, consultants recommend to not create *.yml files in the /usr/share/ceph-ansible paths but to put the site specific information into a private directory.
I believe this is expected, if you change directory then you should set ANSIBLE_ROLES_PATH accordingly. Typically, we recommend copying the content of infrastructure-playbooks into the /usr/share/ceph-ansible. I personally don't think this is a bug and would like to see this getting closed. But I might be convinced otherwise. Where are you putting this file?
Updating the QA Contact to a Hemant. Hemant will be rerouting them to the appropriate QE Associate. Regards, Giri
Level setting the severity of this defect to "Low" with a bulk update. Pls refine it to a more closure value, as defined by the severity definition in https://bugzilla.redhat.com/page.cgi?id=fields.html#bug_severity
As mentioned this is expected. You need to execute the ansible-playbook from the right directory otherwise the ansible configuration (like roles and library path) won't be set.