Comments (7)
as from: https://github.com/redis/redis/blob/unstable/redis.conf#L249-L265 (vs the v5 config: https://github.com/redis/redis/blob/5.0/redis.conf#L138-L147)
There is a need to uncomment (or add an include file via the var: redis_includes, check the Readme
with content supervised auto
# If you run Redis from upstart or systemd, Redis can interact with your
# supervision tree. Options:
# supervised no - no supervision interaction
# supervised upstart - signal upstart by putting Redis into SIGSTOP mode
# requires "expect stop" in your upstart job config
# supervised systemd - signal systemd by writing READY=1 to $NOTIFY_SOCKET
# on startup, and updating Redis status on a regular
# basis.
# supervised auto - detect upstart or systemd method based on
# UPSTART_JOB or NOTIFY_SOCKET environment variables
# Note: these supervision methods only signal "process is ready."
# They do not enable continuous pings back to your supervisor.
#
# The default is "no". To run under upstart/systemd, you can simply uncomment
# the line below:
#
# supervised auto
from ansible-role-redis.
This issue has been marked 'stale' due to lack of recent activity. If there is no further activity, the issue will be closed in another 30 days. Thank you for your contribution!
Please read this blog post to see the reasons why I mark issues as stale.
from ansible-role-redis.
This issue has been closed due to inactivity. If you feel this is in error, please reopen the issue or file a new issue with the relevant details.
from ansible-role-redis.
Can we reopen this? I was just bitten by this :/
from ansible-role-redis.
Same issue, any workaround ?
from ansible-role-redis.
As a workaround:
daemonize no
supervised auto
from ansible-role-redis.
I do it like this:
Setup a host or group var on your redis_servers group
redis_include: |
supervised auto
Add this to your playbook:
- name: create redis folder
file:
path: /etc/redis
state: directory
- set_fact:
redis_includes: [ '/etc/redis/redis_include.conf' ]
when: redis_include is defined
- name: Redis Include extra options
template:
src: "{{ playbook_dir }}/templates/redis/redis_include.conf.j2"
dest: /etc/redis/redis_include.conf
owner: redis
group: redis
mode: 0640
notify:
- restart redis
when: redis_include is defined
- import_role:
name: geerlingguy.redis
and a template in: templates/redis/redis_include.conf.j2
{{ ansible_managed | comment }}
{{ redis_include }}
from ansible-role-redis.
Related Issues (20)
- Multiple Instances? HOT 2
- Expose all configuration variable as redis_* ansible vars HOT 2
- New Options To Fix Warning Messages HOT 4
- i am ruuning my ansible code i got this error HOT 4
- 'check_mode is not a legal parameter' HOT 1
- Fix deprecation warnings for 'include' in Ansible 2.4+
- Does not enable as a systemd service HOT 2
- `redis-server` installation fails when IPv6 is disabled HOT 2
- redis_requirepass not working HOT 3
- Q/B: Does package module "enablerepo"? HOT 2
- doesnt work on vanilla machines where apt cache is not updated. HOT 2
- Support cluster mode and sharding HOT 2
- Error with redis pid file HOT 11
- Add Replication HOT 3
- Error when installing from official Redis repository on Ubuntu HOT 4
- Redis Cluster HOT 3
- Explicitly disable RDB persistence HOT 7
- Missing 'redis_conf_mode: 0640' default in Archlinux vars HOT 4
- Provide packages for Redis from redis.io
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ansible-role-redis.