diff --git a/roles/common/tasks/freebsd.yml b/roles/common/tasks/freebsd.yml index bf86108..08c04a1 100644 --- a/roles/common/tasks/freebsd.yml +++ b/roles/common/tasks/freebsd.yml @@ -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 diff --git a/roles/common/tasks/main.yml b/roles/common/tasks/main.yml index d8f6ec3..68ca4d4 100644 --- a/roles/common/tasks/main.yml +++ b/roles/common/tasks/main.yml @@ -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 diff --git a/roles/common/tasks/ubuntu.yml b/roles/common/tasks/ubuntu.yml index e830993..ada74f4 100644 --- a/roles/common/tasks/ubuntu.yml +++ b/roles/common/tasks/ubuntu.yml @@ -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