25'ten fazla konu seçemezsiniz Konular bir harf veya rakamla başlamalı, kısa çizgiler ('-') içerebilir ve en fazla 35 karakter uzunluğunda olabilir.

42 satır
1.0KB

  1. ---
  2. - setup:
  3. gather_subset: "!all"
  4. - name: install btrfsutils
  5. apt:
  6. pkg: btrfs-tools
  7. state: installed
  8. when: ansible_os_family=="Debian"
  9. - name: unmount filesystems
  10. mount:
  11. name: "{{ root_target_directory | default('') }}/{{ item.mount_point }}"
  12. state: unmounted
  13. with_items: "{{ filesystems[::-1] }}"
  14. when:
  15. filesystems_state == "unmounted" or
  16. filesystems_state == "formated"
  17. - name: filesystems
  18. filesystem:
  19. fstype: "{{ item.fstype }}"
  20. dev: "{{ item.device }}"
  21. opts: "-U {{ item.uuid }}"
  22. force: "{{ filesystems_state == 'formated' }}"
  23. with_items: "{{ filesystems }}"
  24. when:
  25. item.device is defined and (
  26. filesystems_state == "mounted" or
  27. filesystems_state == "formated" )
  28. - name: mount filesystems
  29. mount:
  30. name: "{{ root_target_directory | default('') }}/{{ item.mount_point }}"
  31. src: "UUID={{ item.uuid }}"
  32. fstype: "{{ item.fstype }}"
  33. state: mounted
  34. with_items: "{{ filesystems }}"
  35. when:
  36. filesystems_state == "mounted" or
  37. filesystems_state == "formated"