From 37318ca0954fd6f32938206c230580271b349e4d Mon Sep 17 00:00:00 2001 From: Michael Leer Date: Tue, 1 Jul 2014 18:05:18 +0100 Subject: [PATCH 1/2] include default options. #7938 amend ansible-doc to include default options as per feature request #7938 --- bin/ansible-doc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/bin/ansible-doc b/bin/ansible-doc index a77fff8130..9faff67507 100755 --- a/bin/ansible-doc +++ b/bin/ansible-doc @@ -113,6 +113,9 @@ def get_man_text(doc): if 'choices' in opt: choices = ", ".join(str(i) for i in opt['choices']) desc = desc + " (Choices: " + choices + ")" + if 'default' in opt: + default = str(opt['default']) + desc = desc + " [Default: " + default + "]" text.append("%s\n" % textwrap.fill(tty_ify(desc), initial_indent=opt_indent, subsequent_indent=opt_indent)) From 891aa41001d2cce549167b69a436c3dcc54eb2d9 Mon Sep 17 00:00:00 2001 From: Michael Leer Date: Tue, 1 Jul 2014 18:49:07 +0100 Subject: [PATCH 2/2] add interfact documentation #7704 --- library/system/ufw | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/library/system/ufw b/library/system/ufw index 40bbb313ed..e917a3bc74 100644 --- a/library/system/ufw +++ b/library/system/ufw @@ -108,6 +108,11 @@ options: - Delete rule. required: false choices: ['yes', 'no'] + interface: + description: + - Specify interface for rule. + required: false + aliases: ['if'] ''' EXAMPLES = '''