From 3100d8183124231281fa5174c1d524d8540a138d Mon Sep 17 00:00:00 2001 From: Kalle Happonen Date: Tue, 19 Jul 2016 15:52:45 +0300 Subject: [PATCH] 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). --- roles/ceph-common/tasks/facts.yml | 2 ++ roles/ceph-common/tasks/misc/system_tuning.yml | 1 + 2 files changed, 3 insertions(+) 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 -- 2.39.5