Skip to content

Commit 0d7f4ef

Browse files
committed
ansible-lint: Move to v6.6.1
Update ansible-lint to 6.6.1. Added ansible-lint to Dockerfile. ansible-lint could be used with ansible in Docker Container together. Exceptions will be fixed at a later time.
1 parent afe1a63 commit 0d7f4ef

File tree

5 files changed

+17
-4
lines changed

5 files changed

+17
-4
lines changed

.ansible-lint

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,13 @@
11
---
2-
32
use_default_rules: true
43

4+
skip_list:
5+
- name[casing]
6+
- name[play]
7+
- key-order[task]
8+
- jinja[spacing]
9+
- yaml[comments-indentation]
10+
511
exclude_paths:
612
- .github
713
- dbhome-conversion

.github/workflows/ansible-lint.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,7 @@ jobs:
1919
- uses: actions/checkout@v2
2020

2121
- name: Lint roles
22-
# Use custom action repo due to open PRs 43 and 48
23-
uses: ansible-community/ansible-lint-action@v6.5.2
22+
uses: ansible-community/ansible-lint-action@v6.6.1
2423
with:
2524
targets: |
2625
inventory/*
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
---
2+
minor_changes:
3+
- "ansible-lint: Move to v6.6.1 (#277)"

docker/Dockerfile

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
FROM docker.io/library/python:3.10-slim-buster
22

33
ARG ansible_version
4+
ARG ansible_lint_version
5+
6+
ENV ansible_version=5.8.0
7+
ENV ansible_lint_version=6.6.1
48

59
ENV LC_ALL=C.UTF-8
610
ENV LANG=C.UTF-8
@@ -27,7 +31,7 @@ RUN apt-get update -y &&\
2731

2832
RUN python3 -m pip install --upgrade pip
2933

30-
RUN pip3 install ansible===${ansible_version} && \
34+
RUN pip3 install ansible===${ansible_version} ansible-lint===${ansible_lint_version} && \
3135
apt-get clean autoclean && \
3236
apt-get autoremove --yes && \
3337
rm -rf /var/lib/{apt,dpkg,cache,log}/ && \

docker/docker-compose.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ services:
55
context: .
66
dockerfile: Dockerfile
77
args:
8+
ansible_lint_version: 6.6.1
89
ansible_version: 5.8.0
910
# ansible_version: 2.9.26
1011
# container_name: ansible-oracle-2.9.26

0 commit comments

Comments
 (0)