summaryrefslogtreecommitdiffstats
path: root/test/integration/targets/tags/test_tags.yml
blob: f0f9a72d73d03c7f6c71dd0655d969684dd72464 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
---
- name: verify tags work as expected
  hosts: testhost
  gather_facts: False
  vars:
    the_tags:
      - tag3
  tasks:
    - name: Task_with_tag
      debug: msg=
      tags: tag
    - name: Task_with_always_tag
      debug: msg=
      tags: always
    - name: Task_with_unicode_tag
      debug: msg=
      tags: くらとみ
    - name: Task_with_list_of_tags
      debug: msg=
      tags:
      - café
      - press
    - name: Task_without_tag
      debug: msg=
    - name: Task_with_never_tag
      debug: msg=NEVER
      tags: ['never', 'donever']
    - name: Task_with_csv_tags
      debug: msg=csv
      tags: tag1,tag2
    - name: Task_with_templated_tags
      debug: msg=templated
      tags: "{{ the_tags }}"
    - name: Task_with_meta_tags
      meta: reset_connection
      tags: meta_tag