diff options
author | Niklas Yann Wettengel <niyawe@niyawe.de> | 2017-03-25 14:33:23 +0100 |
---|---|---|
committer | Niklas Yann Wettengel <niyawe@niyawe.de> | 2017-03-25 14:33:23 +0100 |
commit | cb3abd557431cc04aef5de1b302bcde25cd81c81 (patch) | |
tree | 4fd7058270e4e9d87ccf9778b85e573faccb2cbd /roles/configure_sysctl | |
parent | 62a74b1ed442dc8c8a1224aa8edceeb3ed9c1b84 (diff) |
added reload and restart handlers
Diffstat (limited to 'roles/configure_sysctl')
-rw-r--r-- | roles/configure_sysctl/handlers/main.yml | 3 | ||||
-rw-r--r-- | roles/configure_sysctl/tasks/main.yml | 6 |
2 files changed, 4 insertions, 5 deletions
diff --git a/roles/configure_sysctl/handlers/main.yml b/roles/configure_sysctl/handlers/main.yml new file mode 100644 index 0000000..1b892d7 --- /dev/null +++ b/roles/configure_sysctl/handlers/main.yml @@ -0,0 +1,3 @@ +--- +- name: reload ff-sysctl + command: /usr/bin/sysctl -p /etc/sysctl.d/ff.conf diff --git a/roles/configure_sysctl/tasks/main.yml b/roles/configure_sysctl/tasks/main.yml index 1bfa275..04e0bef 100644 --- a/roles/configure_sysctl/tasks/main.yml +++ b/roles/configure_sysctl/tasks/main.yml @@ -9,8 +9,4 @@ 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 /etc/sysctl.d/ff.conf + notify: reload ff-sysctl |