mirror of
https://github.com/mitogen-hq/mitogen.git
synced 2025-02-26 21:00:41 +00:00
22 lines
580 B
YAML
22 lines
580 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: test-targets
|
|
tasks:
|
|
- name: Attempt to modify /usr/bin/does-not-exist
|
|
file:
|
|
path: /usr/bin/does-not-exist
|
|
mode: a-s
|
|
state: file
|
|
follow: true
|
|
ignore_errors: true
|
|
register: out
|
|
|
|
- assert:
|
|
that:
|
|
- out.msg == 'file (/usr/bin/does-not-exist) is absent, cannot continue'
|
|
fail_msg: out={{out}}
|
|
tags:
|
|
- issue_332
|