blob: 5526912507d3d45477067b72e9b6fb74346fc349 (
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
37
38
39
40
41
42
43
44
45
|
# meta-runtime
This rule checks the meta/runtime.yml `requires_ansible` key against the list of currently supported versions of ansible-core.
This rule can produce messages such:
- `requires_ansible` key must be set to a supported version.
Currently supported versions of ansible-core are:
- `2.9.10`
- `2.11.x`
- `2.12.x`
- `2.13.x`
- `2.14.x`
- `2.15.x`
This rule can produce messages such as:
- `meta-runtime[unsupported-version]` - `requires_ansible` key must contain a supported version, shown in the list above.
- `meta-runtime[invalid-version]` - `requires_ansible` key must be a valid version identifier.
## Problematic code
```yaml
# runtime.yml
---
requires_ansible: ">=2.9"
```
```yaml
# runtime.yml
---
requires_ansible: "2.9"
```
## Correct code
```yaml
# runtime.yml
---
requires_ansible: ">=2.9.10"
```
|