Commit 191602dd authored by Chris Croome's avatar Chris Croome

Ansible lint checks

parent c9fbef8b
Pipeline #12652 passed with stage
in 20 seconds
---
# https://docs.ansible.com/ansible-lint/rules/default_rules.html
skip_list:
# Don't compare to literal True/False
- "601"
# Don't compare to empty string
- "602"
# Lines should be no longer than 160 chars
- "204"
# Tasks that run when changed should likely be handlers
- "503"
# Commands should not change things if nothing needs doing
- "301"
# vim: syntax=yaml
...
---
extends: default
yaml-files:
- '*.yaml'
- '*.yml'
rules:
braces:
max-spaces-inside: 1
......@@ -8,3 +11,6 @@ rules:
max-spaces-inside: 1
level: error
line-length: disable
comments-indentation: disable
# vim: syntax=yaml
...
---
dependency:
name: galaxy
driver:
name: docker
lint:
name: yamllint
platforms:
- name: instance
image: registry.git.coop/webarch/containers/images/ansible:0.2
image: registry.git.coop/webarch/containers/images/ansible:0.3
pre_build_image: true
provisioner:
name: ansible
lint:
name: ansible-lint
scenario:
name: default
test_sequence:
- lint
- destroy
- dependency
- syntax
- create
- prepare
- converge
- idempotence
- side_effect
- verify
- cleanup
- destroy
lint: |
set -e
yamllint -c .yamllint .
ansible-lint -c .ansible-lint.yml .
# vim: syntax=yaml
...
......@@ -18,7 +18,7 @@
src: templates/50-server.cnf.j2
dest: /etc/mysql/mariadb.conf.d/50-server.cnf
backup: true
notify: Restart mariadb
notify: Restart mariadb
tags:
- mariadb
......@@ -33,7 +33,7 @@
template:
src: templates/mariadb.conf.j2
dest: /etc/systemd/system/mariadb.service.d/mariadb.conf
notify: Restart mariadb
notify: Restart mariadb
tags:
- mariadb
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment