summaryrefslogtreecommitdiffstats
path: root/src/ansiblelint/rules/meta_no_tags.md
blob: 95185490d093349883b5c1574f86eab1ba70e4f5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# meta-no-tags

This rule checks role metadata for tags with special characters.
Always use lowercase numbers and letters for tags in the `meta/main.yml` file.

## Problematic Code

```yaml
---
# Metadata tags contain upper-case letters and special characters.
galaxy_info:
  galaxy_tags: [MyTag#1, MyTag&^-]
```

## Correct Code

```yaml
---
# Metadata tags contain only lowercase letters and numbers.
galaxy_info:
  galaxy_tags: [mytag1, mytag2]
```