-
-
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.
Enable default redis instance when provisioning
The default redis instance should be automatically enabled/started after install, but it does not always seem to happen.
- Loading branch information
Showing
2 changed files
with
14 additions
and
0 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 |
---|---|---|
|
@@ -66,6 +66,9 @@ | |
become_user: root | ||
tags: redis | ||
|
||
- role: enable_redis | ||
tags: enable_redis | ||
|
||
- role: sidekiq | ||
tags: sidekiq | ||
|
||
|
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 |
---|---|---|
@@ -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 |