--- - hosts: osds gather_facts: false become: yes tasks: - name: create physical volume command: pvcreate /dev/sdb failed_when: false - name: create volume group command: vgcreate test_group /dev/sdb failed_when: false - name: create logical volume command: lvcreate --yes -l 100%FREE -n test_volume test_group failed_when: false