extra_storage_setup.yml 497 B

1234567891011121314151617
  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. with_items: "{{ container_runtime_extra_storage }}"
  8. - name: Create mount entry for extra volume
  9. mount:
  10. path: "{{ item.path }}"
  11. src: "{{ item.device }}"
  12. fstype: "{{ item.filesystem }}"
  13. opts: "{{ item.options|default(omit) }}"
  14. state: mounted
  15. with_items: "{{ container_runtime_extra_storage }}"