Update playbooks_tags.rst (#72351)
##### SUMMARY Corrected the "Adding tags to blocks" example syntax. ##### ISSUE TYPE - Docs Pull Request +label: docsite_pr
This commit is contained in:
parent
c51438312a
commit
dd19c9f737
1 changed files with 2 additions and 1 deletions
|
@ -129,8 +129,9 @@ If you want to apply a tag to many, but not all, of the tasks in your play, use
|
|||
|
||||
# myrole/tasks/main.yml
|
||||
tasks:
|
||||
- block:
|
||||
- name: ntp tasks
|
||||
tags: ntp
|
||||
block:
|
||||
- name: Install ntp
|
||||
ansible.builtin.yum:
|
||||
name: ntp
|
||||
|
|
Loading…
Add table
Reference in a new issue