mirror of https://github.com/ansible/ansible.git
Change role argspec file used by ansible-doc (#72927)
* Change role argspec file used by ansible-doc This changes the file used for role argument specs from meta/argument_specs.yml to meta/main.yml. The argument specs are expected to be in that file under the top-level entry of `argument_spec`. * Switch to argument_specspull/72970/head
parent
83fb24b923
commit
3a18ef7159
@ -1,22 +0,0 @@
|
|||||||
---
|
|
||||||
main:
|
|
||||||
short_description: testns.testcol.testrole short description for main entry point
|
|
||||||
description:
|
|
||||||
- Longer description for testns.testcol.testrole main entry point.
|
|
||||||
author: Ansible Core (@ansible)
|
|
||||||
options:
|
|
||||||
opt1:
|
|
||||||
description: opt1 description
|
|
||||||
type: "str"
|
|
||||||
required: true
|
|
||||||
|
|
||||||
alternate:
|
|
||||||
short_description: testns.testcol.testrole short description for alternate entry point
|
|
||||||
description:
|
|
||||||
- Longer description for testns.testcol.testrole alternate entry point.
|
|
||||||
author: Ansible Core (@ansible)
|
|
||||||
options:
|
|
||||||
altopt1:
|
|
||||||
description: altopt1 description
|
|
||||||
type: "int"
|
|
||||||
required: true
|
|
||||||
@ -0,0 +1,26 @@
|
|||||||
|
---
|
||||||
|
dependencies:
|
||||||
|
galaxy_info:
|
||||||
|
|
||||||
|
argument_specs:
|
||||||
|
main:
|
||||||
|
short_description: testns.testcol.testrole short description for main entry point
|
||||||
|
description:
|
||||||
|
- Longer description for testns.testcol.testrole main entry point.
|
||||||
|
author: Ansible Core (@ansible)
|
||||||
|
options:
|
||||||
|
opt1:
|
||||||
|
description: opt1 description
|
||||||
|
type: "str"
|
||||||
|
required: true
|
||||||
|
|
||||||
|
alternate:
|
||||||
|
short_description: testns.testcol.testrole short description for alternate entry point
|
||||||
|
description:
|
||||||
|
- Longer description for testns.testcol.testrole alternate entry point.
|
||||||
|
author: Ansible Core (@ansible)
|
||||||
|
options:
|
||||||
|
altopt1:
|
||||||
|
description: altopt1 description
|
||||||
|
type: "int"
|
||||||
|
required: true
|
||||||
@ -1,33 +0,0 @@
|
|||||||
---
|
|
||||||
main:
|
|
||||||
short_description: test_role1 from roles subdir
|
|
||||||
description:
|
|
||||||
- In to am attended desirous raptures B(declared) diverted confined at. Collected instantly remaining
|
|
||||||
up certainly to C(necessary) as. Over walk dull into son boy door went new.
|
|
||||||
- At or happiness commanded daughters as. Is I(handsome) an declared at received in extended vicinity
|
|
||||||
subjects. Into miss on he over been late pain an. Only week bore boy what fat case left use. Match round
|
|
||||||
scale now style far times. Your me past an much.
|
|
||||||
author:
|
|
||||||
- John Doe (@john)
|
|
||||||
- Jane Doe (@jane)
|
|
||||||
|
|
||||||
options:
|
|
||||||
myopt1:
|
|
||||||
description:
|
|
||||||
- First option.
|
|
||||||
type: "str"
|
|
||||||
required: true
|
|
||||||
|
|
||||||
myopt2:
|
|
||||||
description:
|
|
||||||
- Second option
|
|
||||||
type: "int"
|
|
||||||
default: 8000
|
|
||||||
|
|
||||||
myopt3:
|
|
||||||
description:
|
|
||||||
- Third option.
|
|
||||||
type: "str"
|
|
||||||
choices:
|
|
||||||
- choice1
|
|
||||||
- choice2
|
|
||||||
@ -0,0 +1,37 @@
|
|||||||
|
---
|
||||||
|
dependencies:
|
||||||
|
galaxy_info:
|
||||||
|
|
||||||
|
argument_specs:
|
||||||
|
main:
|
||||||
|
short_description: test_role1 from roles subdir
|
||||||
|
description:
|
||||||
|
- In to am attended desirous raptures B(declared) diverted confined at. Collected instantly remaining
|
||||||
|
up certainly to C(necessary) as. Over walk dull into son boy door went new.
|
||||||
|
- At or happiness commanded daughters as. Is I(handsome) an declared at received in extended vicinity
|
||||||
|
subjects. Into miss on he over been late pain an. Only week bore boy what fat case left use. Match round
|
||||||
|
scale now style far times. Your me past an much.
|
||||||
|
author:
|
||||||
|
- John Doe (@john)
|
||||||
|
- Jane Doe (@jane)
|
||||||
|
|
||||||
|
options:
|
||||||
|
myopt1:
|
||||||
|
description:
|
||||||
|
- First option.
|
||||||
|
type: "str"
|
||||||
|
required: true
|
||||||
|
|
||||||
|
myopt2:
|
||||||
|
description:
|
||||||
|
- Second option
|
||||||
|
type: "int"
|
||||||
|
default: 8000
|
||||||
|
|
||||||
|
myopt3:
|
||||||
|
description:
|
||||||
|
- Third option.
|
||||||
|
type: "str"
|
||||||
|
choices:
|
||||||
|
- choice1
|
||||||
|
- choice2
|
||||||
@ -1,4 +0,0 @@
|
|||||||
---
|
|
||||||
main:
|
|
||||||
short_description: test_role1 from playbook dir
|
|
||||||
description: This should not appear in `ansible-doc --list` output.
|
|
||||||
@ -0,0 +1,8 @@
|
|||||||
|
---
|
||||||
|
dependencies:
|
||||||
|
galaxy_info:
|
||||||
|
|
||||||
|
argument_specs:
|
||||||
|
main:
|
||||||
|
short_description: test_role1 from playbook dir
|
||||||
|
description: This should not appear in `ansible-doc --list` output.
|
||||||
Loading…
Reference in New Issue