mirror of
https://github.com/trailofbits/algo.git
synced 2025-06-06 23:24:01 +02:00
enable ipv6 if the default gateway is defined. Fixes #244
This commit is contained in:
parent
98558c43d2
commit
8eb208c5b7
2 changed files with 6 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue