Merge "Force filesystem type on swift format"

This commit is contained in:
Zuul 2018-09-05 20:11:20 +00:00 committed by Gerrit Code Review
commit 7a9f3ef7f4

View File

@ -342,6 +342,9 @@
- "ansible_service_mgr == 'systemd'"
- "(_remove_mounts is changed) or (_remove_lvs is changed)"
- name: Set fact to indicate that the volumes changed (later used to force formatting)
set_fact:
_force_format_disks: "{{ (_remove_mounts is changed) or (_remove_lvs is changed) }}"
- name: Setup cinder host volume
hosts: cinder_hosts
@ -384,6 +387,7 @@
filesystem:
fstype: xfs
dev: "/dev/vmvg00/{{ item }}"
force: "{{ _force_format_disks | default(False) }}"
with_items:
- disk1
- disk2