From 351f122e242a58523a2094f589b09d632a234458 Mon Sep 17 00:00:00 2001 From: Rich Rauenzahn Date: Thu, 12 Aug 2021 12:43:20 -0700 Subject: [PATCH] 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 --- docs/docsite/rst/user_guide/playbooks_tags.rst | 1 - 1 file changed, 1 deletion(-) diff --git a/docs/docsite/rst/user_guide/playbooks_tags.rst b/docs/docsite/rst/user_guide/playbooks_tags.rst index 6ca2aec5127..0e176d0f3ac 100644 --- a/docs/docsite/rst/user_guide/playbooks_tags.rst +++ b/docs/docsite/rst/user_guide/playbooks_tags.rst @@ -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: