- args: executable: /bin/bash become: true changed_when: false environment: OS_CLOUD: standalone name: Manage Cinder's default volume type shell: "if ! openstack volume type show \"{{ default_volume_type }}\"; then\n \ \ openstack volume type create --public \"{{ default_volume_type }}\"\nfi\neval\ \ $(openstack volume type show __DEFAULT__ -f shell -c id -c description)\nif\ \ [ -n \"$id\" ]; then\n if ! openstack volume type delete $id ; then\n \ \ tripleo_descr=\"For internal use, '{{ default_volume_type }}' is the default\ \ volume type\"\n if [ \"$description\" != \"$tripleo_descr\" ]; then\n\ \ openstack volume type set $id --description \"$tripleo_descr\"\n\ \ fi\n fi\nfi\n" vars: default_volume_type: tripleo when: - step|int == 5 - not ansible_check_mode|bool