This commit is contained in:
2021-09-05 02:25:16 +02:00
parent 707e261c13
commit 010eba0149
21 changed files with 714 additions and 63 deletions

View File

@ -1 +0,0 @@
vm.swappiness = 0

View File

@ -0,0 +1 @@
vm.swappiness = 5

View File

@ -32,6 +32,7 @@
group: root
owner: root
when:
- inventory_hostname not in groups['lxc_guest']
- copy_plain_files_systemd is defined
- copy_plain_files_systemd|length > 0
tags:
@ -48,6 +49,7 @@
loop_control:
label: 'dest: {{ item.name }}'
when:
- inventory_hostname not in groups['lxc_guest']
- copy_plain_files_systemd is defined
- copy_plain_files_systemd|length > 0
tags:
@ -61,6 +63,7 @@
group: root
owner: root
when:
- inventory_hostname not in groups['lxc_guest']
- copy_plain_files_sysctl is defined
- copy_plain_files_sysctl|length > 0
tags:
@ -77,6 +80,7 @@
loop_control:
label: 'dest: {{ item.name }}'
when:
- inventory_hostname not in groups['lxc_guest']
- copy_plain_files_sysctl is defined
- copy_plain_files_sysctl|length > 0
tags:

View File

@ -25,27 +25,27 @@
tags:
- sudoers-remove
#- name: (sudoers.yml) update specific sudoers configuration files (/etc/sudoers.d/)
# template:
# src: etc/sudoers.d/50-user.j2
# dest: /etc/sudoers.d/50-user
# #validate: visudo -cf %s
# owner: root
# group: root
# mode: 0440
# tags:
# - sudoers-file-configuration
- name: (sudoers.yml) update global sudoers configuration file
- name: (sudoers.yml) update specific sudoers configuration files (/etc/sudoers.d/)
template:
src: etc/sudoers.j2
dest: /etc/sudoers
src: etc/sudoers.d/50-user.j2
dest: /etc/sudoers.d/50-user
#validate: visudo -cf %s
owner: root
group: root
mode: 0440
#validate: visudo -cf %s
tags:
- sudoers-global-configuration
- sudoers-file-configuration
#- name: (sudoers.yml) update global sudoers configuration file
# template:
# src: etc/sudoers.j2
# dest: /etc/sudoers
# owner: root
# group: root
# mode: 0440
# #validate: visudo -cf %s
# tags:
# - sudoers-global-configuration
- name: (sudoers.yml) Ensure all sudo_users are in sudo group
user: