Merge "Fix ansible-lint job"
This commit is contained in:
commit
e64e0fb901
@ -2,7 +2,8 @@
|
||||
|
||||
# Configure attached ephemeral devices for storage and swap
|
||||
|
||||
- assert:
|
||||
- name: Assert that ephemeral_device is defined
|
||||
assert:
|
||||
that:
|
||||
- "ephemeral_device is defined"
|
||||
|
||||
@ -106,6 +107,8 @@
|
||||
mount {{ opt_partition }} /mnt
|
||||
find /opt/ -mindepth 1 -maxdepth 1 -exec mv {} /mnt/ \;
|
||||
umount /mnt
|
||||
tags:
|
||||
- skip_ansible_lint
|
||||
|
||||
# This overmounts any existing /opt
|
||||
- name: Add opt to fstab and mount
|
||||
|
4
tox.ini
4
tox.ini
@ -26,7 +26,7 @@ whitelist_externals = bash
|
||||
passenv =
|
||||
# NOTE(pabelanger): if you'd like to run tox -elinters locally, you'll need
|
||||
# to export ANSIBLE_ROLES_PATH pointing to the currect repos.
|
||||
# see infra-zuul-jobs-linters job for more information.
|
||||
# see openstack-zuul-jobs-linters job for more information.
|
||||
ANSIBLE_ROLES_PATH
|
||||
commands =
|
||||
flake8 {posargs}
|
||||
@ -35,6 +35,8 @@ commands =
|
||||
bash -c "find playbooks -type d -name "legacy" -prune -o \
|
||||
-type f -regex '.*.y[a]ml' -print0 | xargs -t -n1 -0 \
|
||||
ansible-lint -xANSIBLE0012"
|
||||
bash -c 'find roles -maxdepth 1 -mindepth 1 -type d -printf "%p/\n" | \
|
||||
xargs -t -n1 ansible-lint -xANSIBLE0012'
|
||||
# Ansible Syntax Check
|
||||
bash -c "cd playbooks; find . -type f -regex '.*.y[a]?ml' -exec \
|
||||
ansible-playbook --syntax-check -i {toxinidir}/tests/inventory \{\} + > /dev/null"
|
||||
|
Loading…
x
Reference in New Issue
Block a user