add docker mountpoint on extra subvolume
note: right now the subvol needs to be created prior running this playbook
This commit is contained in:
@@ -199,7 +199,7 @@ rpm_ostree_layered_packages:
|
|||||||
compsize:
|
compsize:
|
||||||
state: absent
|
state: absent
|
||||||
docker-compose:
|
docker-compose:
|
||||||
state: absent
|
state: present
|
||||||
fd-find:
|
fd-find:
|
||||||
state: absent
|
state: absent
|
||||||
git:
|
git:
|
||||||
@@ -217,7 +217,7 @@ rpm_ostree_layered_packages:
|
|||||||
microdnf:
|
microdnf:
|
||||||
state: present
|
state: present
|
||||||
moby-engine:
|
moby-engine:
|
||||||
state: absent
|
state: present
|
||||||
mosh:
|
mosh:
|
||||||
state: absent
|
state: absent
|
||||||
ncdu:
|
ncdu:
|
||||||
@@ -273,12 +273,21 @@ etc_fstab_entries:
|
|||||||
opts: noatime,subvol=root,compress=zstd:1,x-systemd.device-timeout=0
|
opts: noatime,subvol=root,compress=zstd:1,x-systemd.device-timeout=0
|
||||||
passno: 0
|
passno: 0
|
||||||
dump: 0
|
dump: 0
|
||||||
|
state: present
|
||||||
home:
|
home:
|
||||||
path: /home
|
path: /home
|
||||||
fstype: btrfs
|
fstype: btrfs
|
||||||
opts: subvol=home,compress=zstd:1,x-systemd.device-timeout=0
|
opts: subvol=home,compress=zstd:1,x-systemd.device-timeout=0
|
||||||
passno: 0
|
passno: 0
|
||||||
dump: 0
|
dump: 0
|
||||||
|
state: present
|
||||||
|
docker:
|
||||||
|
path: /var/lib/docker
|
||||||
|
fstype: btrfs
|
||||||
|
opts: subvol=docker,compress=zstd:1,x-systemd.device-timeout=0
|
||||||
|
passno: 0
|
||||||
|
dump: 0
|
||||||
|
state: mounted
|
||||||
|
|
||||||
users:
|
users:
|
||||||
flexo:
|
flexo:
|
||||||
|
|||||||
@@ -6,6 +6,8 @@ etc_fstab_entries_overwrite:
|
|||||||
src: UUID=254d6a53-398a-4a53-93d1-c45e61263791
|
src: UUID=254d6a53-398a-4a53-93d1-c45e61263791
|
||||||
home:
|
home:
|
||||||
src: UUID=254d6a53-398a-4a53-93d1-c45e61263791
|
src: UUID=254d6a53-398a-4a53-93d1-c45e61263791
|
||||||
|
docker:
|
||||||
|
src: UUID=254d6a53-398a-4a53-93d1-c45e61263791
|
||||||
|
|
||||||
rpm_ostree_kargs_overwrite:
|
rpm_ostree_kargs_overwrite:
|
||||||
'i915.enable_psr=0':
|
'i915.enable_psr=0':
|
||||||
|
|||||||
@@ -6,6 +6,8 @@ etc_fstab_entries_overwrite:
|
|||||||
src: UUID=aa63fb86-3fc9-42d1-82ca-7d47d0238765
|
src: UUID=aa63fb86-3fc9-42d1-82ca-7d47d0238765
|
||||||
home:
|
home:
|
||||||
src: UUID=aa63fb86-3fc9-42d1-82ca-7d47d0238765
|
src: UUID=aa63fb86-3fc9-42d1-82ca-7d47d0238765
|
||||||
|
docker:
|
||||||
|
src: UUID=aa63fb86-3fc9-42d1-82ca-7d47d0238765
|
||||||
|
|
||||||
flatpak_flatpaks_overwrite:
|
flatpak_flatpaks_overwrite:
|
||||||
com.github.Bleuzen.FFaudioConverter:
|
com.github.Bleuzen.FFaudioConverter:
|
||||||
|
|||||||
@@ -6,6 +6,8 @@ etc_fstab_entries_overwrite:
|
|||||||
src: UUID=f1b9b845-5f3c-4912-b729-b6e8605f0def
|
src: UUID=f1b9b845-5f3c-4912-b729-b6e8605f0def
|
||||||
home:
|
home:
|
||||||
src: UUID=f1b9b845-5f3c-4912-b729-b6e8605f0def
|
src: UUID=f1b9b845-5f3c-4912-b729-b6e8605f0def
|
||||||
|
docker:
|
||||||
|
src: UUID=f1b9b845-5f3c-4912-b729-b6e8605f0def
|
||||||
|
|
||||||
flatpak_flatpaks_overwrite:
|
flatpak_flatpaks_overwrite:
|
||||||
org.gnome.Firmware:
|
org.gnome.Firmware:
|
||||||
|
|||||||
@@ -1,18 +1,36 @@
|
|||||||
---
|
---
|
||||||
- name: Merge fstab entries
|
|
||||||
set_fact:
|
|
||||||
etc_fstab_entries: '{{ etc_fstab_entries | combine(etc_fstab_entries_overwrite, recursive=True) }}'
|
|
||||||
when:
|
|
||||||
- etc_fstab_entries_overwrite | default()
|
|
||||||
|
|
||||||
- name: Configure fstab
|
- name: Configure fstab
|
||||||
ansible.posix.mount:
|
block:
|
||||||
src: "{{ item.value.src }}"
|
- name: Merge variables
|
||||||
path: "{{ item.value.path }}"
|
set_fact:
|
||||||
fstype: "{{ item.value.fstype }}"
|
etc_fstab_entries: '{{ etc_fstab_entries | combine(etc_fstab_entries_overwrite, recursive=True) }}'
|
||||||
opts: "{{ item.value.opts }}"
|
when:
|
||||||
passno: "{{ item.value.passno }}"
|
- etc_fstab_entries_overwrite | default()
|
||||||
dump: "{{ item.value.dump }}"
|
|
||||||
state: present
|
#- name: Mount btrfs root
|
||||||
become: yes
|
# ansible.posix.mount:
|
||||||
loop: "{{ lookup('dict', etc_fstab_entries, wantlist=True) }}"
|
# src: "'/dev/mapper/luks-' + {{ etc_fstab_btrfs_root }}"
|
||||||
|
# path: "/mnt"
|
||||||
|
# become: yes
|
||||||
|
|
||||||
|
#- name: Create subvolume
|
||||||
|
# #ansible.builtin.command:
|
||||||
|
# ansible.builtin.debug:
|
||||||
|
# #cmd: "btrfs subvolume create {{ item }}"
|
||||||
|
# msg: "{{ item }}"
|
||||||
|
# become: yes
|
||||||
|
# loop: "{{ lookup('dict', etc_fstab_entries, wantlist=True) }}"
|
||||||
|
# when:
|
||||||
|
# "item.value.path != '/' and item.value.path != '/home'"
|
||||||
|
|
||||||
|
- name: Write fstab entries
|
||||||
|
ansible.posix.mount:
|
||||||
|
src: "{{ item.value.src }}"
|
||||||
|
path: "{{ item.value.path }}"
|
||||||
|
fstype: "{{ item.value.fstype }}"
|
||||||
|
opts: "{{ item.value.opts }}"
|
||||||
|
passno: "{{ item.value.passno }}"
|
||||||
|
dump: "{{ item.value.dump }}"
|
||||||
|
state: "{{ item.value.state }}"
|
||||||
|
become: yes
|
||||||
|
loop: "{{ lookup('dict', etc_fstab_entries, wantlist=True) }}"
|
||||||
|
|||||||
@@ -5,5 +5,5 @@
|
|||||||
connection: "local"
|
connection: "local"
|
||||||
roles:
|
roles:
|
||||||
- flatpak
|
- flatpak
|
||||||
- rpm-ostree
|
|
||||||
- etc
|
- etc
|
||||||
|
- rpm-ostree
|
||||||
|
|||||||
Reference in New Issue
Block a user