enable ipv6 if the default gateway is defined. Fixes #244

pull/252/head^2
Jack Ivanov 7 years ago
parent 98558c43d2
commit 8eb208c5b7

@ -9,7 +9,7 @@
- name: Iptables configured
template: src="{{ item.src }}" dest="{{ item.dest }}" owner=root group=root mode=0640
when: ipv6_support is defined and ipv6_support == "yes"
when: ipv6_support is defined and ipv6_support == true
with_items:
- { src: rules.v6.j2, dest: /etc/iptables/rules.v6 }
notify:

@ -1,6 +1,11 @@
- name: Gather Facts
setup:
- name: Enable IPv6
set_fact:
ipv6_support: true
when: ansible_default_ipv6.gateway is defined
- name: Generate password for the CA key
shell: >
< /dev/urandom tr -dc _A-Z-a-z-0-9 | head -c${1:-12};echo;

Loading…
Cancel
Save