Skip to content

Commit c455cf4

Browse files
committed
remove iptables line for https and use ansible_default_ipv4 for memcached
1 parent 1b377cc commit c455cf4

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

Diff for: tomcat-memcached-failover/roles/common/templates/iptables.j2

-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77

88
{% if (inventory_hostname in groups['lb_servers']) %}
99
-A INPUT -p tcp --dport {{ nginx_http_port }} -j ACCEPT
10-
-A INPUT -p tcp --dport {{ nginx_https_port }} -j ACCEPT
1110
{% endif %}
1211

1312
{% if inventory_hostname in groups['backend_servers'] %}

Diff for: tomcat-memcached-failover/roles/memcached/templates/memcached.conf.j2

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,4 @@ LOGFILE="/var/log/memcached.log"
1414
CACHESIZE="{{ ansible_memtotal_mb / 2 }}"
1515

1616
#Set server IP address
17-
OPTIONS="-l {{ ansible_eth1['ipv4']['address'] }}"
17+
OPTIONS="-l {{ ansible_default_ipv4['address'] }}"

0 commit comments

Comments
 (0)