From: Kalle Happonen Date: Tue, 19 Jul 2016 12:52:45 +0000 (+0300) Subject: Added support for --check flag in ceph-common X-Git-Tag: v1.0.6~52^2 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=3100d8183124231281fa5174c1d524d8540a138d;p=ceph-ansible.git 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). --- diff --git a/roles/ceph-common/tasks/facts.yml b/roles/ceph-common/tasks/facts.yml index ce05663d3..3a2f7e10c 100644 --- a/roles/ceph-common/tasks/facts.yml +++ b/roles/ceph-common/tasks/facts.yml @@ -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: diff --git a/roles/ceph-common/tasks/misc/system_tuning.yml b/roles/ceph-common/tasks/misc/system_tuning.yml index cf3393c55..b6ad51995 100644 --- a/roles/ceph-common/tasks/misc/system_tuning.yml +++ b/roles/ceph-common/tasks/misc/system_tuning.yml @@ -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