From 3023d0339ccbedf88d0b57264a91e039369e60dd Mon Sep 17 00:00:00 2001 From: James Saint-Rossy Date: Wed, 16 Nov 2016 16:47:43 -0500 Subject: [PATCH] Replaced Ansible 2.2 specific check_mode: no with backwards compatible always_run: yes --- roles/ceph-common/tasks/facts.yml | 4 ++-- roles/ceph-common/tasks/misc/system_tuning.yml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/roles/ceph-common/tasks/facts.yml b/roles/ceph-common/tasks/facts.yml index dd6129517..cef022ffd 100644 --- a/roles/ceph-common/tasks/facts.yml +++ b/roles/ceph-common/tasks/facts.yml @@ -2,7 +2,7 @@ - name: get ceph version command: ceph --version changed_when: false - check_mode: no + always_run: yes register: ceph_version - set_fact: @@ -12,7 +12,7 @@ - name: check init system slurp: src: /proc/1/comm - check_mode: no + always_run: yes 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 5b38a63b3..8da585dae 100644 --- a/roles/ceph-common/tasks/misc/system_tuning.yml +++ b/roles/ceph-common/tasks/misc/system_tuning.yml @@ -14,7 +14,7 @@ command: sysctl -b vm.min_free_kbytes changed_when: false failed_when: false - check_mode: no + always_run: yes register: default_vm_min_free_kbytes - name: define vm.min_free_kbytes