|
@@ -1,9 +1,6 @@ |
|
|
--- |
|
|
--- |
|
|
|
|
|
|
|
|
- setup: |
|
|
|
|
|
gather_subset: "!all" |
|
|
|
|
|
|
|
|
|
|
|
- name: install btrfsutils |
|
|
|
|
|
|
|
|
- name: install btrfs-tools |
|
|
apt: |
|
|
apt: |
|
|
pkg: btrfs-tools |
|
|
pkg: btrfs-tools |
|
|
state: installed |
|
|
state: installed |
|
@@ -22,7 +19,7 @@ |
|
|
filesystem: |
|
|
filesystem: |
|
|
fstype: "{{ item.fstype }}" |
|
|
fstype: "{{ item.fstype }}" |
|
|
dev: "{{ item.device }}" |
|
|
dev: "{{ item.device }}" |
|
|
opts: "-U {{ item.uuid }}" |
|
|
|
|
|
|
|
|
opts: -U {{ item.uuid }} |
|
|
force: "{{ filesystems_state == 'formated' }}" |
|
|
force: "{{ filesystems_state == 'formated' }}" |
|
|
with_items: "{{ filesystems }}" |
|
|
with_items: "{{ filesystems }}" |
|
|
when: |
|
|
when: |
|
@@ -35,8 +32,9 @@ |
|
|
name: "{{ root_target_directory | default('') }}/{{ item.mount_point }}" |
|
|
name: "{{ root_target_directory | default('') }}/{{ item.mount_point }}" |
|
|
src: "UUID={{ item.uuid }}" |
|
|
src: "UUID={{ item.uuid }}" |
|
|
fstype: "{{ item.fstype }}" |
|
|
fstype: "{{ item.fstype }}" |
|
|
|
|
|
opts: '{{ item.mount_options | default("defaults") }}' |
|
|
state: mounted |
|
|
state: mounted |
|
|
with_items: "{{ filesystems }}" |
|
|
with_items: "{{ filesystems }}" |
|
|
when: |
|
|
when: |
|
|
filesystems_state == "mounted" or |
|
|
filesystems_state == "mounted" or |
|
|
filesystems_state == "formated" |
|
|
|
|
|
|
|
|
filesystems_state == "formated" |