# You can override the included template(s) by including variable overrides # See https://docs.gitlab.com/ee/user/application_security/sast/#customizing-the-sast-settings # Note that environment variables can be set in several places # See https://docs.gitlab.com/ee/ci/variables/#priority-of-environment-variables workflow: rules: - if: '$CI_PIPELINE_SOURCE == "web"' stages: - test - run - deploy syntax-check-job: stage: test tags: - loufux-docker image: ansible script: - ansible-playbook tests/test.yml -i tests/inventory --syntax-check ||true lint-test-job: stage: test tags: - loufux-docker image: ansible script: - ansible-lint -p tests/test.yml | ansible-lint-junit -o ansible-lint.xml || true artifacts: reports: junit: ansible-lint.xml run-job: stage: run tags: - loufux-docker image: ansible script: - ansible-playbook tests/test.yml -i tests/inventory deploy-job: stage: deploy tags: - loufux-docker image: ansible script: - ansible-galaxy install git+https://gitlab.com/loufux/ansible/helloworld.git --roles-path /etc/ansible/roles/ - ansible-galaxy info helloworld - ansible-galaxy list