Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
klen committed Jul 19, 2016
1 parent ca353ad commit bfddb65
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ limits_path: /etc/security/limits.d/tune.conf
limits_limits:
- "* - nofile 65535"

limits_sysctl_ignore: false

limits_sysctl:
- { name: 'net.ipv4.tcp_tw_recycle', value: '1' }
- { name: 'net.ipv4.tcp_tw_reuse', value: '1' }
Expand All @@ -15,4 +17,4 @@ limits_hosts_allow: []
limits_hosts_deny: []

limits_pamd_files:
- "su"
- "su"
2 changes: 1 addition & 1 deletion tasks/limits.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
template: src=limits.conf.j2 dest={{limits_path}} owner=root group=root mode=0644

- name: Update sysctl
sysctl: name={{item.name}} value={{item.value}} ignoreerrors={{sysctl_ignore}}
sysctl: name={{item.name}} value={{item.value}} ignoreerrors={{limits_sysctl_ignore}}
with_items: "{{limits_sysctl}}"

- name: Update hosts.allow
Expand Down

0 comments on commit bfddb65

Please sign in to comment.