Merge pull request #926 from t-woerner/fix_automountlocation_docs_for_ansible_test

ipaautomountlocation: Fix documentation sections and agument spec
This commit is contained in:
Rafael Guterres Jeffman
2022-09-30 14:37:14 -03:00
committed by GitHub

View File

@@ -1,8 +1,9 @@
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
# Authors: # Authors:
# Chris Procter <cprocter@redhat.com> # Chris Procter <cprocter@redhat.com>
# Thomas Woerner <twoerner@redhat.com>
# #
# Copyright (C) 2021 Red Hat # Copyright (C) 2021-2022 Red Hat
# see file 'COPYING' for use and warranty information # see file 'COPYING' for use and warranty information
# #
# This program is free software; you can redistribute it and/or modify # This program is free software; you can redistribute it and/or modify
@@ -32,7 +33,9 @@ ANSIBLE_METADATA = {
DOCUMENTATION = ''' DOCUMENTATION = '''
--- ---
module: ipaautomountlocation module: ipaautomountlocation
author: chris procter author:
- Chris Procter (@chr15p)
- Thomas Woerner (@t-woerner)
short_description: Manage FreeIPA autommount locations short_description: Manage FreeIPA autommount locations
description: description:
- Add and delete an IPA automount location - Add and delete an IPA automount location
@@ -42,10 +45,13 @@ options:
name: name:
description: The automount location to be managed description: The automount location to be managed
required: true required: true
type: list
elements: str
aliases: ["cn","location"] aliases: ["cn","location"]
state: state:
description: State to ensure description: State to ensure
required: false required: false
type: str
default: present default: present
choices: ["present", "absent"] choices: ["present", "absent"]
''' '''
@@ -116,9 +122,8 @@ def main():
default='present', default='present',
choices=['present', 'absent'] choices=['present', 'absent']
), ),
name=dict(type="list", name=dict(type="list", elements="str",
aliases=["cn", "location"], aliases=["cn", "location"],
default=None,
required=True required=True
), ),
), ),