Enable default values if the role is skipped #313

pull/350/head
Jack Ivanov 7 years ago
parent 578bb3344d
commit c0f4b5fa41

@ -10,9 +10,8 @@
- bash
- wget
sysctl:
forwarding:
- net.inet.ip.forwarding
- net.inet6.ip6.forwarding
- net.inet.ip.forwarding
- net.inet6.ip6.forwarding
tags:
- always

@ -14,14 +14,14 @@
- name: Install tools
package: name="{{ item }}" state=present
with_items:
- "{{ tools }}"
- "{{ tools|default([]) }}"
tags:
- always
- name: Enable packet forwarding for IPv4
sysctl: name="{{ item }}" value=1
with_items:
- "{{ sysctl.forwarding }}"
- "{{ sysctl|default([]) }}"
tags:
- always

@ -83,9 +83,8 @@
- cgroup-tools
- openssl
sysctl:
forwarding:
- net.ipv4.ip_forward
- net.ipv4.conf.all.forwarding
- net.ipv6.conf.all.forwarding
- net.ipv4.ip_forward
- net.ipv4.conf.all.forwarding
- net.ipv6.conf.all.forwarding
tags:
- always

Loading…
Cancel
Save