You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ansible/test/integration/targets/argspec/tasks/main.yml

34 lines
700 B
YAML

- argspec:
state: absent
register: argspec_simple_good
- argspec:
state: present
register: argspec_required_if_fail
ignore_errors: true
- argspec:
state: present
path: foo
register: argspec_required_if_good1
- argspec:
state: present
content: foo
register: argspec_required_if_good2
- argspec:
state: present
content: foo
path: foo
register: argspec_mutually_exclusive_fail
ignore_errors: true
- assert:
that:
- argspec_simple_good is successful
- argspec_required_if_fail is failed
- argspec_required_if_good1 is successful
- argspec_required_if_good2 is successful
- argspec_mutually_exclusive_fail is failed