mirror of https://github.com/ceph/ceph-ansible.git
Better --check compatibility for ceph-common-coreos role
Carefully chosen "always_run: true" parameters for read-only tasks that register variables. This enables --check runs (at least on deployed clusters).pull/1121/head
parent
767c5c1c86
commit
2e50e5ba88
|
@ -2,7 +2,7 @@
|
|||
- name: download python
|
||||
raw: cd $HOME && wget -O - {{coreos_pypy_url}} |tar -xjf -
|
||||
|
||||
- name: create pypy_directory
|
||||
- name: create pypy_directory
|
||||
raw: mkdir -p {{pypy_binary_directory}}
|
||||
|
||||
- name: move pypy to pypy_install_directory
|
||||
|
|
|
@ -3,6 +3,7 @@
|
|||
raw: stat $HOME/.python
|
||||
register: need_python
|
||||
ignore_errors: true
|
||||
always_run: true
|
||||
|
||||
- include: install_pypy.yml
|
||||
when: need_python | failed
|
||||
|
@ -11,6 +12,7 @@
|
|||
raw: stat $HOME/.pip
|
||||
register: need_pip
|
||||
ignore_errors: true
|
||||
always_run: true
|
||||
|
||||
- include: install_pip.yml
|
||||
when: need_pip | failed and need_python | failed
|
||||
|
|
Loading…
Reference in New Issue