]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
Fix check mode support
authorGaudenz Steinlin <gaudenz.steinlin@cloudscale.ch>
Mon, 6 May 2019 08:14:36 +0000 (10:14 +0200)
committerGuillaume Abrioux <gabrioux@redhat.com>
Tue, 7 May 2019 11:07:45 +0000 (13:07 +0200)
Adds "check_mode: no" to commands which register cluster state in a
variable and don't modify anything. These commands have to run in order
to support running the playbook in check mode.

Signed-off-by: Gaudenz Steinlin <gaudenz.steinlin@cloudscale.ch>
(cherry picked from commit 3c8987c7a549b63b2e615c6daa4a3a93f5049967)

roles/ceph-facts/tasks/facts.yml
roles/ceph-mgr/tasks/mgr_modules.yml

index 74de769aa708d70aa06829025c5aa9b619777622..8e63e924aa33abc0ed0bde759f24c5b9922867c8 100644 (file)
 - name: resolve device link(s)
   command: readlink -f {{ item }}
   changed_when: false
+  check_mode: no
   with_items: "{{ devices }}"
   register: devices_prepare_canonicalize
   when:
   command: grep 'osd pool default crush rule' /etc/ceph/{{ cluster }}.conf
   register: crush_rule_variable
   changed_when: false
+  check_mode: no
   failed_when: false
   when: ceph_conf.stat.exists
 
index 057e517c35d4c3ae38314690040ca246702e95a9..f044dcef4de623070d0f371febc3b117a332a541 100644 (file)
@@ -11,6 +11,7 @@
 
 - name: get enabled modules from ceph-mgr
   command: "{{ docker_exec_cmd_mgr | default('') }} ceph --cluster {{ cluster }} --format json mgr module ls"
+  check_mode: no
   changed_when: false
   register: _ceph_mgr_modules
   delegate_to: "{{ groups[mon_group_name][0] }}"