Migrate to new apps role
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
---
|
||||
|
||||
- name: Configure sysctl parameters
|
||||
ansible.posix.sysctl:
|
||||
name: "{{ item.name }}"
|
||||
@@ -7,23 +6,26 @@
|
||||
sysctl_file: "{{ item.file }}"
|
||||
state: present
|
||||
reload: true
|
||||
loop: "{{ sysconfig_sysctl }}"
|
||||
loop:
|
||||
- name: fs.inotify.max_user_watches
|
||||
value: 524288
|
||||
file: /etc/sysctl.d/local.conf
|
||||
become: true
|
||||
when: sysconfig_sysctl is defined and sysconfig_sysctl | length > 0
|
||||
|
||||
- name: Configure GNOME settings
|
||||
community.general.dconf:
|
||||
key: "/{{ item.schema | replace('.', '/') }}/{{ item.key }}"
|
||||
value: "{{ item.value }}"
|
||||
state: present
|
||||
loop: "{{ sysconfig_gsettings }}"
|
||||
when: sysconfig_gsettings is defined and sysconfig_gsettings | length > 0
|
||||
loop:
|
||||
- schema: org.gnome.nautilus.preferences
|
||||
key: always-use-location-entry
|
||||
value: "true"
|
||||
|
||||
- name: Configure sudoers for passwordless commands
|
||||
ansible.builtin.lineinfile:
|
||||
path: /etc/sudoers
|
||||
line: "{{ ansible_facts['user_id'] }} ALL=(ALL) NOPASSWD: {{ sysconfig_sudoers_nopasswd_commands | join(', ') }}"
|
||||
line: "{{ ansible_user }} ALL=(ALL) NOPASSWD: /usr/bin/psd-overlay-helper, /usr/bin/btrfs, /usr/bin/journalctl, /usr/bin/dnf, /usr/bin/fwupdmgr, /usr/bin/dmesg"
|
||||
state: present
|
||||
validate: /usr/sbin/visudo -cf %s
|
||||
validate: /usr/bin/visudo -cf %s
|
||||
become: true
|
||||
when: sysconfig_sudoers_nopasswd_commands is defined and sysconfig_sudoers_nopasswd_commands | length > 0
|
||||
|
||||
Reference in New Issue
Block a user