Skip to content

Commit

Permalink
add jessie to the systemd method of upping the ulimit.
Browse files Browse the repository at this point in the history
  • Loading branch information
Christopher Mancini committed Dec 6, 2016
1 parent 05b4840 commit 84cba18
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions tasks/Debian.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,17 +45,22 @@
- "'deb' in riak_package"
- not dist.stat.exists

- name: Set the riak ulimit for non Ubuntu Xenial
- name: Set the riak ulimit for Debian
copy: src=etc_security_limits.d_riak.conf dest=/etc/security/limits.conf
tags: Debian
when: 'ansible_distribution == "Debian"'

- name: Set the riak ulimit for Ubuntu Trusty
copy: src=etc_default_riak_ulimit dest=/etc/default/riak owner=riak group=riak
tags: Debian
when: 'ansible_os_family == "Debian" and ansible_distribution_release != "xenial"'
when: 'ansible_distribution_release != "xenial" and ansible_distribution_release != "jessie"'

- name: Set the riak ulimit for Ubuntu Xenial
lineinfile: 'dest=/lib/systemd/system/riak.service line="LimitNOFILE=131072" insertafter="^RuntimeDirectory=riak"'
tags: Debian
when: 'ansible_os_family == "Debian" and ansible_distribution_release == "xenial"'
when: 'ansible_distribution_release == "xenial" or ansible_distribution_release == "jessie"'

- name: Reload systemd
systemd: state=restarted daemon_reload=yes name=riak enabled=yes
tags: Debian
when: 'ansible_os_family == "Debian" and ansible_distribution_release == "xenial"'
when: 'ansible_distribution_release == "xenial" or ansible_distribution_release == "jessie"'

0 comments on commit 84cba18

Please sign in to comment.