Update playbooks_tags.rst (#75472)

##### SUMMARY
When I used this example it complains with:

ERROR! The tasks/main.yml file for role 'myrole' must contain a list of tasks

The error appears to be in 'ansible/roles/myrole/tasks/main.yml': line 2, column 1, but may
be elsewhere in the file depending on the exact syntax problem.

The offending line appears to be:

---
tasks:
^ here

Removing "tasks:" fixes it.


##### ISSUE TYPE
- Docs Pull Request

+label: docsite_pr
pull/69656/merge
Rich Rauenzahn 3 years ago committed by GitHub
parent a88741cf14
commit 351f122e24
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -128,7 +128,6 @@ If you want to apply a tag to many, but not all, of the tasks in your play, use
.. code-block:: yaml
# myrole/tasks/main.yml
tasks:
- name: ntp tasks
tags: ntp
block:

Loading…
Cancel
Save