Add sysctl

This commit is contained in:
Daniel A. Maierhofer
2018-07-13 13:32:21 +02:00
parent 01603d2043
commit 1a0adb219d
3 changed files with 15 additions and 0 deletions

View File

@@ -52,3 +52,7 @@
- import_tasks: git.yml
when: common_git
tags: ['common', 'git']
- import_tasks: sysctl.yml
when: common_sysctl
tags: ['common', 'sysctl']

10
tasks/sysctl.yml Normal file
View 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 }}"