Skip to content

Commit

Permalink
Update requires_ansible default require >=2.16 (#4479)
Browse files Browse the repository at this point in the history
Co-authored-by: Sorin Sbarnea <ssbarnea@redhat.com>
  • Loading branch information
samccann and ssbarnea authored Jan 20, 2025
1 parent bd37652 commit c43a5ef
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/ansiblelint/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ class Options: # pylint: disable=too-many-instance-attributes
max_tasks: int = 100
max_block_depth: int = 20
# Refer to https://docs.ansible.com/ansible/latest/reference_appendices/release_and_maintenance.html#ansible-core-support-matrix
_default_supported = ["2.15.", "2.16.", "2.17."]
_default_supported = ["2.15.", "2.16.", "2.17.", "2.18."]
supported_ansible_also: list[str] = field(default_factory=list)

@property
Expand Down
6 changes: 3 additions & 3 deletions src/ansiblelint/rules/meta_runtime.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ currently supported versions of ansible-core.
This rule can produce messages such as:

- `meta-runtime[unsupported-version]` - `requires_ansible` key must refer to a
currently supported version such as: >=2.14.0, >=2.15.0, >=2.16.0
currently supported version such as: >=2.15.0, >=2.16.0, >=2.17.0, >=2.18.0
- `meta-runtime[invalid-version]` - `requires_ansible` is not a valid
requirement specification

Expand All @@ -28,15 +28,15 @@ requires_ansible: ">=2.9"
```yaml
# runtime.yml
---
requires_ansible: "2.15"
requires_ansible: "2.17"
```
## Correct code
```yaml
# runtime.yml
---
requires_ansible: ">=2.15.0"
requires_ansible: ">=2.17.0"
```
## Configuration
Expand Down

0 comments on commit c43a5ef

Please sign in to comment.