Compare commits

..

2 Commits

Author SHA1 Message Date
6af30fcda8 Add .ansible-lint 2021-07-31 20:06:03 -05:00
2af41e77b3 Move linting to its own stage, install python-is-python3 in setup 2021-07-31 20:03:38 -05:00
2 changed files with 25 additions and 2 deletions

22
.ansible-lint Normal file
View File

@ -0,0 +1,22 @@
# .ansible-lint
# vim:ft=ansible
exclude_paths:
# We're not interested in linting Galaxy roles here
- roles/docker
- roles/k8s
- roles/nextcloud
- roles/postgresql
- roles/sshd
mock_roles:
# Used for local testing
- docker
- k8s
- nextcloud
- postgresql
- sshd
warn_list:
# I'm aware of the risks and accept them
- package-latest

View File

@ -1,11 +1,12 @@
image: ubuntu:focal image: ubuntu:focal
stages: stages:
- lint
- test - test
- play - play
before_script: before_script:
# Get the packages we need # Get the packages we need
- apt-get update - apt-get update
- apt-get install openssh-client python3-docker python3-pip -y - apt-get install openssh-client python3-docker python3-pip python-is-python3 -y
- pip install ansible ansible-lint - pip install ansible ansible-lint
# Dump our key # Dump our key
- eval $(ssh-agent -s) - eval $(ssh-agent -s)
@ -23,7 +24,7 @@ before_script:
Lint: Lint:
allow_failure: yes allow_failure: yes
stage: test stage: lint
script: script:
- ansible-lint --version - ansible-lint --version
- ansible-lint site.yml - ansible-lint site.yml