Skip to content

Commit

Permalink
Add exception in sysctl task (dev-sec#240)
Browse files Browse the repository at this point in the history
No need apply sysctl in docker and openvz containers.

Signed-off-by: Oleg Kupriyanov <[email protected]>
  • Loading branch information
Oleg Kupriyanov authored and rndmh3ro committed Oct 28, 2019
1 parent d609de1 commit 3e14d45
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tasks/sysctl.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@
reload: yes
ignoreerrors: yes
with_dict: '{{ sysctl_config }}'
when: ansible_virtualization_type != 'docker' and ansible_virtualization_type != 'openvz'

- name: Change various sysctl-settings on rhel6-hosts or older, look at the sysctl-vars file for documentation
sysctl:
Expand Down

0 comments on commit 3e14d45

Please sign in to comment.