Skip tags by default

This commit is contained in:
2022-01-28 12:05:24 +01:00
parent e0bfb3f97c
commit 6e736b1d77

View File

@@ -44,6 +44,15 @@ The regex `(?<=\()\d+` uses a feature called *positive lookbehind*: `(?<=\()`. I
msg: '{{ sample.result_list | json_query("[*].stdout_lines[1]") | map("regex_search" ,"(?<=\()\d+") | list }}' msg: '{{ sample.result_list | json_query("[*].stdout_lines[1]") | map("regex_search" ,"(?<=\()\d+") | list }}'
``` ```
## Skip (or run) tags by default
When working with tags you may not want to run tasks with a specific tag. For this you can add a section `tags` to the `ansible.cfg` file:
```ini
[tags]
skip: my_tag_to_skip
```
## Links ## Links
* [Module defaults](https://docs.ansible.com/ansible/latest/user_guide/playbooks_module_defaults.html) * [Module defaults](https://docs.ansible.com/ansible/latest/user_guide/playbooks_module_defaults.html)