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 <kcoakley@sdsc.edu>
pull/3663/head
Kevin Coakley 2019-02-28 12:57:03 -08:00 committed by mergify[bot]
parent 573adce7dd
commit 038401fef2
1 changed files with 1 additions and 0 deletions

View File

@ -37,6 +37,7 @@
- name: get osd ids - name: get osd ids
shell: | shell: |
ls /var/lib/ceph/osd/ | sed 's/.*-//' ls /var/lib/ceph/osd/ | sed 's/.*-//'
changed_when: false
register: osd_ids_non_container register: osd_ids_non_container
- name: set_fact docker_exec_start_osd - name: set_fact docker_exec_start_osd