From 038401fef2e80c11dbaabbf1bb5f2a8efd9b18fc Mon Sep 17 00:00:00 2001 From: Kevin Coakley Date: Thu, 28 Feb 2019 12:57:03 -0800 Subject: [PATCH] Add changed_when: false to the "get osd ids" statement The "get osd ids" statement only registers the osd_ids_non_container variable. Running "ls /var/lib/ceph/osd/ | sed 's/.*-//'" should never produce a change on the system. Adding changed_when: false prevents irrelevant change messages from Ansible. Signed-off-by: Kevin Coakley --- roles/ceph-osd/tasks/start_osds.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/roles/ceph-osd/tasks/start_osds.yml b/roles/ceph-osd/tasks/start_osds.yml index 1145d9b4c..10e755df6 100644 --- a/roles/ceph-osd/tasks/start_osds.yml +++ b/roles/ceph-osd/tasks/start_osds.yml @@ -37,6 +37,7 @@ - name: get osd ids shell: | ls /var/lib/ceph/osd/ | sed 's/.*-//' + changed_when: false register: osd_ids_non_container - name: set_fact docker_exec_start_osd