Add sysctl
This commit is contained in:
@@ -100,3 +100,4 @@ common_postfix_smtpd_tls_session_cache_database: "btree:${data_directory}/smtpd_
|
|||||||
common_rcfiles: True
|
common_rcfiles: True
|
||||||
common_tty: True
|
common_tty: True
|
||||||
common_git: True
|
common_git: True
|
||||||
|
common_sysctl: False
|
||||||
|
|||||||
@@ -52,3 +52,7 @@
|
|||||||
- import_tasks: git.yml
|
- import_tasks: git.yml
|
||||||
when: common_git
|
when: common_git
|
||||||
tags: ['common', 'git']
|
tags: ['common', 'git']
|
||||||
|
|
||||||
|
- import_tasks: sysctl.yml
|
||||||
|
when: common_sysctl
|
||||||
|
tags: ['common', 'sysctl']
|
||||||
|
|||||||
10
tasks/sysctl.yml
Normal file
10
tasks/sysctl.yml
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
---
|
||||||
|
- name: sysctl - sysctl.d
|
||||||
|
file: path=/etc/sysctl.d state=directory owner=root group=root mode=0755
|
||||||
|
|
||||||
|
- name: sysctl - set config
|
||||||
|
sysctl:
|
||||||
|
name: "{{ item.key }}"
|
||||||
|
value: "{{ item.val }}"
|
||||||
|
sysctl_file: /etc/sysctl.d/01-custom.conf
|
||||||
|
with_items: "{{ common_sysctls }}"
|
||||||
Reference in New Issue
Block a user