extra_storage_setup.yml 544 B

123456789101112131415161718
  1. ---
  2. - name: Create file system on extra volume device
  3. filesystem:
  4. fstype: "{{ item.filesystem }}"
  5. dev: "{{ item.device }}"
  6. force: "{{ item.force|default(omit) }}"
  7. opts: "{{ item.mkfs_opts|default(omit) }}"
  8. with_items: "{{ container_runtime_extra_storage }}"
  9. - name: Create mount entry for extra volume
  10. mount:
  11. path: "{{ item.path }}"
  12. src: "{{ item.device }}"
  13. fstype: "{{ item.filesystem }}"
  14. opts: "{{ item.options|default(omit) }}"
  15. state: mounted
  16. with_items: "{{ container_runtime_extra_storage }}"