init
This commit is contained in:
commit
c5cd492449
475 changed files with 27928 additions and 0 deletions
15
technology/tools/Ansible/modules/ansible.builtin.fail.md
Normal file
15
technology/tools/Ansible/modules/ansible.builtin.fail.md
Normal file
|
@ -0,0 +1,15 @@
|
|||
# ansible.builtin.fail
|
||||
This module fails the progress with a custom message.
|
||||
|
||||
## Parameter
|
||||
| Parameter | Type | Default | Description |
|
||||
| --------- | ------ | ------------------------------- | -------------------------------------------------- |
|
||||
| **msg** | string | "Failed as requested from task" | The customized message used for failing execution. |
|
||||
|
||||
## Examples
|
||||
```yaml
|
||||
- name: Example using fail and when together
|
||||
ansible.builtin.fail:
|
||||
msg: The system may not be provisioned according to the CMDB status.
|
||||
when: cmdb_status != "to-be-staged"
|
||||
```
|
Loading…
Add table
Add a link
Reference in a new issue