--- - lvg: pvs: "{{ dst_device }}" vg: "{{ dst_vg }}" register: dst_lvg - lvol: lv: data vg: "{{ dst_vg }}" size: 95%VG register: dst_lvol_data - lvol: lv: metadata vg: "{{ dst_vg }}" size: 5%VG register: dst_lvol_metadata - name: Update docker_storage options lineinfile: dest: /etc/sysconfig/docker-storage backrefs: yes regexp: "^(DOCKER_STORAGE_OPTIONS=)" line: '\1 --storage-opt {{ dst_options | oo_combine_key_value("=") | join(" --storage-opt ") }}' when: dst_options is defined and dst_options | length > 0 register: dst_config - name: Reload systemd units command: systemctl daemon-reload notify: - restart docker when: dst_config | changed or dst_lvg | changed or dst_lvol_data | changed or dst_lvol_metadata | changed