Skip to content

Commit

Permalink
CircleCI: ansible-lint playbooks
Browse files Browse the repository at this point in the history
  • Loading branch information
tangrufus committed Jan 19, 2020
1 parent ab70d8e commit e429f58
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .ansible-lint
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
skip_list:
- 204 # Lines should be no longer than 160 chars
13 changes: 13 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,16 @@ orbs:
ansible-playbook --syntax-check -e env=development rollback.yml
ansible-playbook --syntax-check -e xdebug_tunnel_inventory_host=1 xdebug-tunnel.yml
lint:
executor: python-3
steps:
- run: python --version
- checkout
# TODO: Cache pip OR install via apt-get.
- run: sudo pip install ansible-lint
- run: ansible-lint --version
- run: ansible-lint deploy.yml dev.yml server.yml rollback.yml xdebug-tunnel.yml

workflows:
syntax-check:
jobs:
Expand Down Expand Up @@ -80,3 +90,6 @@ workflows:
name: syntax-check-python-2-ansible-2.7
python-version: '2'
ansible-version: ~=2.7.0
lint:
jobs:
- trellis/lint

0 comments on commit e429f58

Please sign in to comment.