]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
Better --check compatibility for ceph-common-coreos role
authorDaniel Marks <daniel.marks@codecentric.de>
Sat, 26 Nov 2016 16:48:06 +0000 (17:48 +0100)
committerDaniel Marks <daniel.marks@codecentric.de>
Sat, 26 Nov 2016 16:48:06 +0000 (17:48 +0100)
Carefully chosen "always_run: true" parameters for read-only tasks that
register variables. This enables --check runs (at least on deployed
clusters).

roles/ceph-common-coreos/tasks/install_pypy.yml
roles/ceph-common-coreos/tasks/main.yml

index 6a3c80166d91870b4a361f6af26f6c2e30639f1a..38ad2076315d224189475736ce1e07c107519f09 100644 (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
index 7e3665afca73e4071648c54966a451db3d4c6022..f858ae5fd9bdcca4d147daf745dfab07fb28322a 100644 (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