Skip to content

Commit

Permalink
minor changes
Browse files Browse the repository at this point in the history
  • Loading branch information
HanXHX committed Jun 30, 2017
1 parent 734b508 commit 59dfec9
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@
changed_when: false

- name: APT | Install redis
apt: >
pkg=redis-server
state=present
default_release="{{ redis_apt_target }}"
apt:
pkg: redis-server
state: present
default_release: "{{ redis_apt_target }}"

- name: LINEINFILE | Add include in config file
lineinfile:
Expand All @@ -30,14 +30,14 @@
notify: restart redis

- name: TEMPLATE | Deploy Redis config file
template: >
src=etc/redis/redis.conf.local.j2
dest=/etc/redis/redis.conf.local
template:
src: etc/redis/redis.conf.local.j2
dest: /etc/redis/redis.conf.local
notify: restart redis

- name: LINEINFILE | Manage ulimit
lineinfile: >
line='{% if redis_ulimit is none %}# ULIMIT=65536{% else %}ULIMIT={{ redis_ulimit }}{% endif %}'
regexp='^(#\s)?ULIMIT'
dest=/etc/default/redis-server
line: '{% if redis_ulimit is none %}# ULIMIT=65536{% else %}ULIMIT={{ redis_ulimit }}{% endif %}'
regexp: '^(#\s)?ULIMIT'
dest: /etc/default/redis-server
notify: restart redis

0 comments on commit 59dfec9

Please sign in to comment.