-
-
Notifications
You must be signed in to change notification settings - Fork 112
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Clean up previous tasks and remove old included config
- Loading branch information
1 parent
b808c4d
commit 28193ef
Showing
1 changed file
with
3 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |