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
Daniel Marks 2016-11-26 17:48:06 +01:00
parent 767c5c1c86
commit 2e50e5ba88
2 changed files with 3 additions and 1 deletions

View File

@ -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

View File

@ -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