summaryrefslogtreecommitdiff
path: root/roles/configure_sysctl/tasks
diff options
context:
space:
mode:
Diffstat (limited to 'roles/configure_sysctl/tasks')
-rw-r--r--roles/configure_sysctl/tasks/main.yml15
1 files changed, 15 insertions, 0 deletions
diff --git a/roles/configure_sysctl/tasks/main.yml b/roles/configure_sysctl/tasks/main.yml
new file mode 100644
index 0000000..fa73a9a
--- /dev/null
+++ b/roles/configure_sysctl/tasks/main.yml
@@ -0,0 +1,15 @@
+---
+- name: touch sysctl.conf
+ file:
+ path: /etc/sysctl.conf
+ state: touch
+
+- name: copy ff.conf
+ copy:
+ src: ff.conf
+ dest: /etc/sysctl.d/ff.conf
+ register: ff_conf
+
+- name: reload sysctl
+ when: ff_conf.changed
+ command: /usr/bin/sysctl -p