From 4176c3b500d351384703d21834c62df796166db2 Mon Sep 17 00:00:00 2001 From: Chris West Date: Sun, 12 Oct 2014 12:43:50 +0100 Subject: [PATCH] Enable "ufw default allow routed" * The policy is shown in `status verbose`, so all the check mode stuff should keep working. * `--dry-run` works as expected. * No idea whether it's legal as an argument to `interface` --- lib/ansible/modules/extras/system/ufw.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/ansible/modules/extras/system/ufw.py b/lib/ansible/modules/extras/system/ufw.py index e917a3bc74..a49aa8c3a4 100644 --- a/lib/ansible/modules/extras/system/ufw.py +++ b/lib/ansible/modules/extras/system/ufw.py @@ -52,7 +52,7 @@ options: description: - Select direction for a rule or default policy command. required: false - choices: ['in', 'out', 'incoming', 'outgoing'] + choices: ['in', 'out', 'incoming', 'outgoing', 'routed'] logging: description: - Toggles logging. Logged packets use the LOG_KERN syslog facility. @@ -173,7 +173,7 @@ def main(): state = dict(default=None, choices=['enabled', 'disabled', 'reloaded', 'reset']), default = dict(default=None, aliases=['policy'], choices=['allow', 'deny', 'reject']), logging = dict(default=None, choices=['on', 'off', 'low', 'medium', 'high', 'full']), - direction = dict(default=None, choices=['in', 'incoming', 'out', 'outgoing']), + direction = dict(default=None, choices=['in', 'incoming', 'out', 'outgoing', 'routed']), delete = dict(default=False, type='bool'), insert = dict(default=None), rule = dict(default=None, choices=['allow', 'deny', 'reject', 'limit']),