summaryrefslogtreecommitdiffstats
path: root/examples/roles/hello/meta/argument_specs.yml
blob: 47bde78971b134d71bafe39f50a64f733b02f6a4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
---
# https://docs.ansible.com/ansible/latest/user_guide/playbooks_reuse_roles.html#role-argument-validation
argument_specs:
  main:
    short_description: The main entry point for the role.
    description: "a longer description"
    options:
      my_app_int:
        type: "int"
        required: false
        default: 42
        description: "The integer value, defaulting to 42."
        no_log: false

      my_app_str:
        type: "str"
        required: true
        description: "The string value"

  alternate:
    short_description: The alternate entry point for the my_app role.
    options:
      my_app_int:
        type: "int"
        required: false
        default: 1024
        description: "The integer value, defaulting to 1024."