Added support for --check flag in ceph-common

The ceph-common role fails when you run ansible with --check. Adding
always_run to a few tasks makes the check go through easier (although
it's not foolproof).
pull/888/head
Kalle Happonen 2016-07-19 15:52:45 +03:00
parent ce3258898f
commit 3100d81831
2 changed files with 3 additions and 0 deletions

View File

@ -2,6 +2,7 @@
- name: get ceph version
command: ceph --version
changed_when: false
always_run: true
register: ceph_version
- set_fact:
@ -11,6 +12,7 @@
- name: check init system
slurp:
src: /proc/1/comm
always_run: true
register: init_system
- set_fact:

View File

@ -20,6 +20,7 @@
command: sysctl -b vm.min_free_kbytes
changed_when: false
failed_when: false
always_run: true
register: default_vm_min_free_kbytes
- name: define vm.min_free_kbytes