Skip to content

Commit

Permalink
Clean up previous tasks and remove old included config
Browse files Browse the repository at this point in the history
  • Loading branch information
Matt-Yorkley committed May 30, 2021
1 parent b808c4d commit 28193ef
Showing 1 changed file with 3 additions and 28 deletions.
31 changes: 3 additions & 28 deletions roles/common/tasks/redis.yml
Original file line number Diff line number Diff line change
@@ -1,34 +1,9 @@
---

- name: add official redis ppa
apt_repository:
repo: ppa:redislabs/redis
become: yes

- name: install redis-server
apt:
name: redis-server
update_cache: yes
become: yes

- name: enable custom config file
# We can remove this after all servers have been provisioned and deployed at least once
- name: disable custom redis config file
lineinfile:
name: "/etc/redis/redis.conf"
line: "include /etc/redis/local.conf"
state: present
become: yes

- name: add redis configuration
template:
src: redis.conf.j2
dest: /etc/redis/local.conf
mode: 0644
become: yes
notify:
- restart redis

- name: ensure service is enabled
service:
name: redis-server
enabled: yes
state: absent
become: yes

0 comments on commit 28193ef

Please sign in to comment.