{% if hostvars[item].ansible_devices | length <= 1 %}
remote_disk: [] # not disk
{% else %}
remote_disk: 
{% endif %}
{% set count=0 %}
{% for disk in hostvars[item].ansible_devices | sort %}
{% if not (disk | is_system_disk(hostvars[item])) | bool %}
{% set count = count + 1 %}
- {{ disk }} #id: {{ count }}, size: {{ hostvars[item].ansible_devices[disk]['size']}}
{% endif %}
{% endfor %}

Copyright & TianCiwang 2021 all right reserved,powered by Gitbook修改时间: 2021-11-09 23:35:42

results matching ""

    No results matching ""

    results matching ""

      No results matching ""