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.
15 lines
472 B
YAML
15 lines
472 B
YAML
# issue #332: Ansible 2.6 file.py started defining an excepthook and private
|
|
# AnsibleModuleError. Ensure file fails correctly.
|
|
|
|
- name: regression/issue_332_ansiblemoduleerror_first_occurrence.yml
|
|
hosts: all
|
|
tasks:
|
|
- file: path=/usr/bin/does-not-exist mode='a-s' state=file follow=yes
|
|
ignore_errors: true
|
|
register: out
|
|
|
|
- assert:
|
|
that:
|
|
- out.state == 'absent'
|
|
- out.msg == 'file (/usr/bin/does-not-exist) is absent, cannot continue'
|