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

[make] Improve module doc (#6161)

This change reorder the parameters so that we get the mandatory one at
the top, then alphabetically order the other bellow.

It also adds the returned values.
This commit is contained in:
Cédric Jeanneret 2023-03-08 14:16:45 +01:00 committed by GitHub
parent 6cf674485f
commit 6d003ca7fc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -25,15 +25,6 @@ attributes:
diff_mode:
support: none
options:
target:
description:
- The target to run.
- Typically this would be something like C(install),C(test) or C(all)."
type: str
params:
description:
- Any extra parameters to pass to make.
type: dict
chdir:
description:
- Change to this directory before running make.
@ -43,11 +34,6 @@ options:
description:
- Use a custom Makefile.
type: path
make:
description:
- Use a specific make binary.
type: path
version_added: '0.2.0'
jobs:
description:
- Set the number of make jobs to run concurrently.
@ -55,6 +41,20 @@ options:
- This is not supported by all make implementations.
type: int
version_added: 2.0.0
make:
description:
- Use a specific make binary.
type: path
version_added: '0.2.0'
params:
description:
- Any extra parameters to pass to make.
type: dict
target:
description:
- The target to run.
- Typically this would be something like C(install), C(test), or C(all).
type: str
'''
EXAMPLES = r'''
@ -83,7 +83,33 @@ EXAMPLES = r'''
file: /some-project/Makefile
'''
RETURN = r'''# '''
RETURN = r'''
chdir:
description:
- The value of the module parameter I(chdir).
type: str
returned: success
file:
description:
- The value of the module parameter I(file).
type: str
returned: success
jobs:
description:
- The value of the module parameter I(jobs)
type: int
returned: success
params:
description:
- The value of the module parameter I(params)
type: dict
returned: success
target:
description:
- The value of the module parameter I(target)
type: str
returned: success
'''
from ansible.module_utils.six import iteritems
from ansible.module_utils.basic import AnsibleModule