Enable default values if the role is skipped #313

This commit is contained in:
Jack Ivanov 2017-04-04 16:57:39 +02:00
parent 578bb3344d
commit c0f4b5fa41
3 changed files with 7 additions and 9 deletions

View file

@ -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:

View file

@ -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

View file

@ -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