Skip to content

Commit

Permalink
Merge pull request #988 from rioug/enable-default-redis-instance
Browse files Browse the repository at this point in the history
Enable default redis instance
  • Loading branch information
mkllnk authored Jan 16, 2025
2 parents 909205a + 0351d21 commit 6d6e333
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 7 deletions.
3 changes: 3 additions & 0 deletions playbooks/provision.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,9 @@
become_user: root
tags: redis

- role: enable_redis
tags: enable_redis

- role: sidekiq
tags: sidekiq

Expand Down
7 changes: 0 additions & 7 deletions roles/common/handlers/main.yml

This file was deleted.

11 changes: 11 additions & 0 deletions roles/enable_redis/tasks/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---

# According to the docs Redis should be started automatically :
# https://redis.io/docs/latest/operate/oss_and_stack/install/install-redis/install-redis-on-linux/#install-on-ubuntudebian
# But in reality the default instance is not always enabled so we do it manually
- name: Enable default redis instance
service:
name: redis-server
state: started
enabled: true
become: true

0 comments on commit 6d6e333

Please sign in to comment.