diff --git a/.gitlab-ci/lint.yml b/.gitlab-ci/lint.yml index 26829218c..6bb864ade 100644 --- a/.gitlab-ci/lint.yml +++ b/.gitlab-ci/lint.yml @@ -17,11 +17,17 @@ ansible-lint: syntax-check: extends: .job stage: unit-tests + variables: + ANSIBLE_INVENTORY: inventory/local-tests.cfg + ANSIBLE_REMOTE_USER: root + ANSIBLE_BECOME: "true" + ANSIBLE_BECOME_USER: root + ANSIBLE_VERBOSITY: "3" script: - - ansible-playbook -i inventory/local-tests.cfg -u root -e ansible_ssh_user=root -b --become-user=root cluster.yml -vvv --syntax-check - - ansible-playbook -i inventory/local-tests.cfg -u root -e ansible_ssh_user=root -b --become-user=root upgrade-cluster.yml -vvv --syntax-check - - ansible-playbook -i inventory/local-tests.cfg -u root -e ansible_ssh_user=root -b --become-user=root reset.yml -vvv --syntax-check - - ansible-playbook -i inventory/local-tests.cfg -u root -e ansible_ssh_user=root -b --become-user=root extra_playbooks/upgrade-only-k8s.yml -vvv --syntax-check + - ansible-playbook --syntax-check cluster.yml + - ansible-playbook --syntax-check upgrade-cluster.yml + - ansible-playbook --syntax-check reset.yml + - ansible-playbook --syntax-check extra_playbooks/upgrade-only-k8s.yml except: ['triggers', 'master'] tox-inventory-builder: