Add low life fstab configuration and remove test sysctl from defaults
This commit is contained in:
@@ -5,8 +5,5 @@ etc_update_users: true
|
||||
etc_enable_NTS: true
|
||||
etc_configure_firewalld: true
|
||||
etc_configure_sysctl: true
|
||||
|
||||
etc_sysctl_params:
|
||||
kernel.unprivileged_bpf_disabled:
|
||||
value: 1
|
||||
state: present
|
||||
etc_configure_fstab: true
|
||||
etc_configure_btrfs: false
|
||||
|
||||
2
roles/etc/tasks/btrfs.yml
Normal file
2
roles/etc/tasks/btrfs.yml
Normal file
@@ -0,0 +1,2 @@
|
||||
---
|
||||
# TODO: snapper, btrfsmaintainance
|
||||
@@ -6,6 +6,19 @@
|
||||
become: yes
|
||||
when: etc_set_hostname | bool
|
||||
|
||||
- name: Configure fstab
|
||||
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: present
|
||||
become: yes
|
||||
loop: "{{ lookup('dict', etc_fstab_entries, wantlist=True) }}"
|
||||
when: etc_configure_fstab | bool
|
||||
|
||||
- name: Include users.yml
|
||||
ansible.builtin.include: users.yml
|
||||
when: etc_update_users | bool
|
||||
@@ -25,3 +38,7 @@
|
||||
- name: Include sysctl.yml
|
||||
ansible.builtin.include: sysctl.yml
|
||||
when: etc_configure_sysctl | bool
|
||||
|
||||
- name: Include btrfs.yml
|
||||
ansible.builtin.include: btrfs.yml
|
||||
when: etc_configure_btrfs | bool
|
||||
|
||||
Reference in New Issue
Block a user