validate ansible version

This commit is contained in:
L3D 2026-02-21 19:09:58 +01:00
parent 0950739c06
commit f8ce5e3255
No known key found for this signature in database
5 changed files with 19 additions and 1 deletions

3
.gitmodules vendored
View File

@ -1,3 +1,6 @@
[submodule "collections/ansible_collections/community/general"]
path = collections/ansible_collections/community/general
url = https://github.com/ansible-collections/community.general.git
[submodule "roles/do1jlr.ansible_version"]
path = roles/do1jlr.ansible_version
url = https://github.com/roles-ansible/ansible_role_versioncheck.git

View File

@ -2,7 +2,15 @@
extends: default
rules:
# 150 chars should be enough, but don't fail if a line is longer
# 180 chars should be enough, but don't fail if a line is longer
line-length:
max: 180
level: warning
comments:
min-spaces-from-content: 1
comments-indentation: false
braces:
max-spaces-inside: 1
octal-values:
forbid-implicit-octal: true
forbid-explicit-octal: true

View File

@ -0,0 +1,2 @@
---
check_ansible_version: '2.20.1'

@ -0,0 +1 @@
Subproject commit 2bf5d7c4369a8213b42829b14f78920e9906d099

View File

@ -1 +1,5 @@
---
- name: Check ansible version
hosts: localhost
roles:
- {role: do1jlr.ansible_version, tags: [version, always]}