- hosts: localhost vars_files: - ../map.yml tasks: - name: "system/disks : Install required filesystem packages" package: name: - btrfs-progs state: present - name: "system/disks : Append btrfs module" lineinfile: state: present path: /etc/modules insertafter: EOF line: btrfs - name: "system/disks : Set correct /btrfs permissions" file: path: "/btrfs" owner: root group: root mode: "0755" state: directory - name: "system/disks : Get ROOT_UUID" shell: | lsblk -o LABEL,UUID | grep ROOT | awk '{print $2}' register: root_uuid run_once: true - name: "system/disks : Get ESP_UUID" shell: | lsblk -o LABEL,UUID | grep EFI | awk '{print $2}' register: esp_uuid run_once: true - name: "system/disks : Deploy fstab" template: src: files/disks_fstab.j2 dest: /etc/fstab owner: root group: root mode: "0644" vars: ROOT_UUID: "{{ root_uuid.stdout }}" ESP_UUID: "{{ esp_uuid.stdout }}" TIMESTAMP: "{{ start_timestamp }}" TMPFS_SIZE: "{{ tmpfs_size }}"