Skip to content

Commit

Permalink
Add how to set an ansible task as softfailed
Browse files Browse the repository at this point in the history
Add how to set an ansible task as softfailed.
  • Loading branch information
hadeskun committed Dec 9, 2024
1 parent fc245f6 commit cc84b1a
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -275,3 +275,19 @@ If the user does not wish to copy the role in the `roles` folder of this reposit
export ANSIBLE_ROLES_PATH=<the-dir-where-the-role-is-located>
. . . (run deployment as you would normally do)
```

### How to rewrite an ansible task to be softfailed automatically in OSADO

To softfailed an ansible task it is needed to add a msg attribute in the task following this format:

```yaml
msg: "[OSADO][softfail] [bsc or jsc]#[number] [short description]"
```

Here a complete example:

```yaml
- name: Example of debug message
ansible.builtin.debug:
msg: "[OSADO][softfail] bsc#123456789 Here a generic message with some explanations."
```

0 comments on commit cc84b1a

Please sign in to comment.