mirror of
https://github.com/trailofbits/algo.git
synced 2025-06-07 15:43:54 +02:00
Enable default values if the role is skipped #313
This commit is contained in:
parent
578bb3344d
commit
c0f4b5fa41
3 changed files with 7 additions and 9 deletions
|
@ -10,7 +10,6 @@
|
||||||
- bash
|
- bash
|
||||||
- wget
|
- wget
|
||||||
sysctl:
|
sysctl:
|
||||||
forwarding:
|
|
||||||
- net.inet.ip.forwarding
|
- net.inet.ip.forwarding
|
||||||
- net.inet6.ip6.forwarding
|
- net.inet6.ip6.forwarding
|
||||||
tags:
|
tags:
|
||||||
|
|
|
@ -14,14 +14,14 @@
|
||||||
- name: Install tools
|
- name: Install tools
|
||||||
package: name="{{ item }}" state=present
|
package: name="{{ item }}" state=present
|
||||||
with_items:
|
with_items:
|
||||||
- "{{ tools }}"
|
- "{{ tools|default([]) }}"
|
||||||
tags:
|
tags:
|
||||||
- always
|
- always
|
||||||
|
|
||||||
- name: Enable packet forwarding for IPv4
|
- name: Enable packet forwarding for IPv4
|
||||||
sysctl: name="{{ item }}" value=1
|
sysctl: name="{{ item }}" value=1
|
||||||
with_items:
|
with_items:
|
||||||
- "{{ sysctl.forwarding }}"
|
- "{{ sysctl|default([]) }}"
|
||||||
tags:
|
tags:
|
||||||
- always
|
- always
|
||||||
|
|
||||||
|
|
|
@ -83,7 +83,6 @@
|
||||||
- cgroup-tools
|
- cgroup-tools
|
||||||
- openssl
|
- openssl
|
||||||
sysctl:
|
sysctl:
|
||||||
forwarding:
|
|
||||||
- net.ipv4.ip_forward
|
- net.ipv4.ip_forward
|
||||||
- net.ipv4.conf.all.forwarding
|
- net.ipv4.conf.all.forwarding
|
||||||
- net.ipv6.conf.all.forwarding
|
- net.ipv6.conf.all.forwarding
|
||||||
|
|
Loading…
Add table
Reference in a new issue