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

homebrew_tap: Doc fixes (#37)

Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
This commit is contained in:
Abhijeet Kasurde 2020-03-27 02:15:21 +05:30 committed by GitHub
parent 01ae744aa6
commit 5c372e0a7c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -32,6 +32,8 @@ options:
- The GitHub user/organization repository to tap. - The GitHub user/organization repository to tap.
required: true required: true
aliases: ['tap'] aliases: ['tap']
type: list
elements: str
url: url:
description: description:
- The optional git URL of the repository to tap. The URL is not - The optional git URL of the repository to tap. The URL is not
@ -40,12 +42,14 @@ options:
- I(name) option may not be a list of multiple taps (but a single - I(name) option may not be a list of multiple taps (but a single
tap instead) when this option is provided. tap instead) when this option is provided.
required: false required: false
type: str
state: state:
description: description:
- state of the repository. - state of the repository.
choices: [ 'present', 'absent' ] choices: [ 'present', 'absent' ]
required: false required: false
default: 'present' default: 'present'
type: str
requirements: [ homebrew ] requirements: [ homebrew ]
''' '''
@ -205,7 +209,7 @@ def remove_taps(module, brew_path, taps):
def main(): def main():
module = AnsibleModule( module = AnsibleModule(
argument_spec=dict( argument_spec=dict(
name=dict(aliases=['tap'], type='list', required=True), name=dict(aliases=['tap'], type='list', required=True, elements='str'),
url=dict(default=None, required=False), url=dict(default=None, required=False),
state=dict(default='present', choices=['present', 'absent']), state=dict(default='present', choices=['present', 'absent']),
), ),