1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

become: Add missing documentation for pfexec, dzdo and machinectl (#53314)

Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
This commit is contained in:
Abhijeet Kasurde 2019-03-07 01:05:15 +05:30 committed by Brian Coca
parent b011ec4638
commit be2a349970
2 changed files with 8 additions and 2 deletions

View file

@ -554,7 +554,12 @@ def process_plugins(module_map, templates, outputname, output_dir, ansible_versi
display.v('about to template %s' % module) display.v('about to template %s' % module)
display.vvvvv(pp.pformat(doc)) display.vvvvv(pp.pformat(doc))
text = templates['plugin'].render(doc) try:
text = templates['plugin'].render(doc)
except Exception as e:
display.warning(msg="Could not parse %s due to %s" % (module, e))
continue
if LooseVersion(jinja2.__version__) < LooseVersion('2.10'): if LooseVersion(jinja2.__version__) < LooseVersion('2.10'):
# jinja2 < 2.10's indent filter indents blank lines. Cleanup # jinja2 < 2.10's indent filter indents blank lines. Cleanup
text = re.sub(' +\n', '\n', text) text = re.sub(' +\n', '\n', text)

View file

@ -15,7 +15,7 @@ DOCUMENTATION = """
become_user: become_user:
description: description:
- User you 'become' to execute the task - User you 'become' to execute the task
- This plugin ignores this settingas pfexec uses it's own ``exec_attr`` to figure this out, - This plugin ignores this setting as pfexec uses it's own ``exec_attr`` to figure this out,
but it is supplied here for Ansible to make decisions needed for the task execution, like file permissions. but it is supplied here for Ansible to make decisions needed for the task execution, like file permissions.
default: root default: root
ini: ini:
@ -80,6 +80,7 @@ DOCUMENTATION = """
vars: vars:
- name: ansible_pfexec_wrap_execution - name: ansible_pfexec_wrap_execution
env: env:
- name: ANSIBLE_PFEXEC_WRAP_EXECUTION
note: note:
- This plugin ignores ``become_user`` as pfexec uses it's own ``exec_attr`` to figure this out. - This plugin ignores ``become_user`` as pfexec uses it's own ``exec_attr`` to figure this out.
""" """