diff options
Diffstat (limited to 'lib/ansible/modules/validate_argument_spec.py')
-rw-r--r-- | lib/ansible/modules/validate_argument_spec.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/ansible/modules/validate_argument_spec.py b/lib/ansible/modules/validate_argument_spec.py index 0186c0af..d29fa9dd 100644 --- a/lib/ansible/modules/validate_argument_spec.py +++ b/lib/ansible/modules/validate_argument_spec.py @@ -17,7 +17,7 @@ version_added: "2.11" options: argument_spec: description: - - A dictionary like AnsibleModule argument_spec. See R(argument spec definition,argument_spec) + - A dictionary like AnsibleModule argument_spec required: true provided_arguments: description: @@ -69,7 +69,7 @@ EXAMPLES = r''' - name: verify vars needed for this task file are present when included, with spec from a spec file ansible.builtin.validate_argument_spec: - argument_spec: "{{(lookup('ansible.builtin.file', 'myargspec.yml') | from_yaml )['specname']['options']}}" + argument_spec: "{{lookup('ansible.builtin.file', 'myargspec.yml')['specname']['options']}}" - name: verify vars needed for next include and not from inside it, also with params i'll only define there |