mirror of https://github.com/ceph/ceph-ansible.git
2bbb4acca6
Check `systempython2.stat` instead of `systempython2.stat.exists`. Without this change, in the case that python2 is not installed, the `stat` task fails without defining `systempython2.stat`. It leads that the next installation tasks fail because of undefined `systempython2.stat`. An example error output (edited for readability): ``` TASK [check for python2] *********************************************** Wednesday 25 July 2018 14:52:47 +0900 (0:00:00.182) 0:00:00.182 * fatal: [ceph-osd1.vlan221.vtj]: FAILED! => { "changed": false, "module_stderr": "/bin/sh: 1: /usr/bin/python: not found\n", "module_stdout": "", "msg": "MODULE FAILURE", "rc": 127} ...ignoring TASK [install python2 for debian based systems] ************************ Wednesday 25 July 2018 14:51:00 +0900 (0:00:01.742) 0:00:01.926 * fatal: [ceph-mon2]: FAILED! => { "msg": "The conditional check 'systempython2.stat.exists is undefined or systempython2.stat.exists == false' failed. The error was: error while evaluating conditional (systempython2.stat.exists is undefined or systempython2.stat.exists == false): 'dict object' has no attribute 'stat' \n\n The error appears to have been in '/Users/arata/git/ceph-ansible/site.yml.sample': line 36, column 7, but may\n be elsewhere in the file depending on the exact syntax problem.\n\n The offending line appears to be:\n\n\n - name: install python2 for debian based systems\n ^ here\n "} ...ignoring ``` Fixes: #2930 Signed-off-by: Arata Notsu <arata776@gmail.com> |
||
---|---|---|
.github/ISSUE_TEMPLATE | ||
contrib | ||
docker | ||
docs | ||
group_vars | ||
infrastructure-playbooks | ||
library | ||
plugins | ||
profiles | ||
roles | ||
tests | ||
.gitignore | ||
.mergify.yml | ||
CONTRIBUTING.md | ||
LICENSE | ||
Makefile | ||
README-MULTISITE.md | ||
README.rst | ||
Vagrantfile | ||
ansible.cfg | ||
ceph-aio-no-vagrant.sh | ||
ceph-ansible.spec.in | ||
dummy-ansible-hosts | ||
example-ansible-role-requirements.yml | ||
generate_group_vars_sample.sh | ||
monitor_keys_example | ||
requirements.txt | ||
rhcs_edits.txt | ||
rundep.sample | ||
rundep_installer.sh | ||
site-docker.yml.sample | ||
site.yml.sample | ||
test.yml | ||
tox.ini | ||
vagrant_variables.yml.atomic | ||
vagrant_variables.yml.linode | ||
vagrant_variables.yml.openstack | ||
vagrant_variables.yml.sample |
README.rst
ceph-ansible ============ Ansible playbooks for Ceph, the distributed filesystem. Please refer to our hosted documentation here: http://docs.ceph.com/ceph-ansible/master/ You can view documentation for our ``stable-*`` branches by substituting ``master`` in the link above for the name of the branch. For example: http://docs.ceph.com/ceph-ansible/stable-3.0/