Merge recursively etc entries
This commit is contained in:
@@ -243,6 +243,20 @@ etc_sysctl_params:
|
||||
value: 524288
|
||||
state: present
|
||||
|
||||
etc_fstab_entries:
|
||||
root:
|
||||
path: /
|
||||
fstype: btrfs
|
||||
opts: noatime,subvol=root,compress=zstd:1,x-systemd.device-timeout=0
|
||||
passno: 0
|
||||
dump: 0
|
||||
home:
|
||||
path: /home
|
||||
fstype: btrfs
|
||||
opts: subvol=home,compress=zstd:1,x-systemd.device-timeout=0
|
||||
passno: 0
|
||||
dump: 0
|
||||
|
||||
users:
|
||||
flexo:
|
||||
shell: /bin/zsh
|
||||
|
||||
@@ -1,21 +1,11 @@
|
||||
---
|
||||
etc_hostname: chapek9
|
||||
|
||||
etc_fstab_entries:
|
||||
etc_fstab_entries_overwrite:
|
||||
root:
|
||||
src: UUID=254d6a53-398a-4a53-93d1-c45e61263791
|
||||
path: /
|
||||
fstype: btrfs
|
||||
opts: noatime,subvol=root,compress=zstd:1,x-systemd.device-timeout=0
|
||||
passno: 0
|
||||
dump: 0
|
||||
home:
|
||||
src: UUID=254d6a53-398a-4a53-93d1-c45e61263791
|
||||
path: /home
|
||||
fstype: btrfs
|
||||
opts: subvol=home,compress=zstd:1,x-systemd.device-timeout=0
|
||||
passno: 0
|
||||
dump: 0
|
||||
|
||||
rpm_ostree_kargs_overwrite:
|
||||
'i915.enable_psr=0':
|
||||
|
||||
@@ -1,6 +1,12 @@
|
||||
---
|
||||
etc_hostname: ice9
|
||||
|
||||
etc_fstab_entries_overwrite:
|
||||
root:
|
||||
src: UUID=aa63fb86-3fc9-42d1-82ca-7d47d0238765
|
||||
home:
|
||||
src: UUID=aa63fb86-3fc9-42d1-82ca-7d47d0238765
|
||||
|
||||
flatpak_flatpaks_overwrite:
|
||||
com.github.Bleuzen.FFaudioConverter:
|
||||
state: present
|
||||
|
||||
@@ -6,6 +6,13 @@
|
||||
become: yes
|
||||
when: etc_set_hostname | bool
|
||||
|
||||
- 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()
|
||||
- etc_configure_fstab | bool
|
||||
|
||||
- name: Configure fstab
|
||||
ansible.posix.mount:
|
||||
src: "{{ item.value.src }}"
|
||||
|
||||
Reference in New Issue
Block a user