Closed 907th closed 4 years ago
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.
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.
I used this Redis role after OS hardening role which disabled all IPv6 settings in
sysctl.conf
. That resulted in the failure ofapt-get install redis-server
(I'm on Ubuntu server) command.Error output is:
The problem is that default
redis.conf
fromredis-server
package containsbind 127.0.0.1 ::1
line, so Redis tries to bind on disabled IPv6 address and hangs.I found discussions of this problem on Ubuntu and Debian bugtrackers. I understand that this is more
redis-server
package problem than the problem of this role, but it would be great if this role had a workaround for this situation.By default, this role is configured to set
bind
to127.0.0.1
(redis_bind_interface
setting), so I found the following solution: I changed the order of Redis configuration and Redis installation tasks in the play, and I also added the task for creating the/etc/redis
dir:Now, when
redis-server
installation happens, the installer uses preconfiguredredis.conf
and all works even if IPv6 is totally disabled.