Flush memcached on first listen IP only
In environments where memcached_listen is overridden to listen on multiple IP addresses, the memcached-flush upgrade playbook will fail because it is trying to flush an IP like "172.29.236.219,127.0.0.1" This will fix the memcached flush playbook to flush only the first listen IP that is specified in the memcached.conf file. Change-Id: I7b34933c1569b97f3cd23bb3db86dd0067fc846e
This commit is contained in:
parent
2afb96327c
commit
d524386bb7
@ -20,4 +20,4 @@
|
||||
tasks:
|
||||
- name: Flush all of the cache in memcached
|
||||
shell: |
|
||||
echo 'flush_all' | nc $(awk '/\-l/ {print $2}' /etc/memcached.conf) $(awk '/\-p/ {print $2}' /etc/memcached.conf)
|
||||
echo 'flush_all' | nc $(awk '/\-l/ {print $2}' /etc/memcached.conf | awk -F, '{ print $1 }') $(awk '/\-p/ {print $2}' /etc/memcached.conf)
|
||||
|
Loading…
Reference in New Issue
Block a user