Skip to content

Commit

Permalink
Enable default redis instance when provisioning
Browse files Browse the repository at this point in the history
The default redis instance should be automatically enabled/started
after install, but it does not always seem to happen.
  • Loading branch information
rioug committed Jan 14, 2025
1 parent ef891b7 commit 02721be
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 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
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 02721be

Please sign in to comment.