vecāks
revīzija
d01fcd888b
2 mainītis faili ar 5 papildinājumiem un 6 dzēšanām
  1. +1
    -0
      defaults/main.yml
  2. +4
    -6
      tasks/main.yml

+ 1
- 0
defaults/main.yml Parādīt failu

@@ -0,0 +1 @@
filesystems_state: mounted

+ 4
- 6
tasks/main.yml Parādīt failu

@@ -1,9 +1,6 @@
---

- setup:
gather_subset: "!all"

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

Notiek ielāde…
Atcelt
Saglabāt