add documentation how to exclude tasks

This commit is contained in:
Robert Kaussow 2020-10-08 00:01:13 +02:00
parent 479f6b9855
commit b002912c53
No known key found for this signature in database
GPG Key ID: 65362AE74AF98B61
2 changed files with 23 additions and 0 deletions

View File

@ -0,0 +1,21 @@
---
title: Exclude tasks
---
If you want to ignore individual tasks completely, you can use the `skip_ansible_later` tag.
## Example
<!-- prettier-ignore-start -->
<!-- spellchecker-disable -->
<!-- markdownlint-disable -->
{{< highlight Yaml "linenos=table" >}}
- name: Excluded task
command: "pwd"
tags:
- skip_ansible_later
{{< /highlight >}}
<!-- markdownlint-restore -->
<!-- spellchecker-enable -->
<!-- prettier-ignore-end -->

View File

@ -13,6 +13,8 @@ main:
ref: "/configuration/defaults"
- name: CLI options
ref: "/configuration/cli"
- name: Exclude tasks
ref: "/configuration/excludes"
- name: Usage
ref: "/usage"
- name: Included rules