summaryrefslogtreecommitdiffstats
path: root/src/ansiblelint/rules/meta_no_info.md
blob: 7617cd23626237435cf535162bf49db83f7d6151 (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
# meta-no-info

This rule checks role metadata for missing information.
Always set appropriate values for the following metadata fields in the `meta/main.yml` file, under `galaxy_info` key:

- `platforms`
- `min_ansible_version`

## Problematic Code

```yaml
---
# The metadata fields for minimum Ansible version and supported platforms are not set.
galaxy_info:
  min_ansible_version:
```

## Correct Code

```yaml
---
galaxy_info:
  min_ansible_version: "2.8"
  platforms:
    - name: Fedora
      versions:
        - all
```