From f696d7abee81e43ea08d2c2d3b12af71bdeb9306 Mon Sep 17 00:00:00 2001 From: Maxime Guyot Date: Sat, 20 Apr 2019 15:37:40 +0200 Subject: [PATCH] Simplify syntax-check CI job (#4585) --- .gitlab-ci/lint.yml | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) 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: