From: Guillaume Abrioux Date: Tue, 29 Jun 2021 18:47:33 +0000 (+0200) Subject: workflow: add syntax check X-Git-Tag: v6.0.12~39 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=51612aa7d3cf0f734ee454b089da511eba1afba7;p=ceph-ansible.git workflow: add syntax check This adds the ansible --syntax-check test in the ansible-lint workflow Signed-off-by: Guillaume Abrioux (cherry picked from commit 5ed423ad8886a8985a4aa6424930f812864845bc) --- diff --git a/.github/workflows/ansible-lint.yml b/.github/workflows/ansible-lint.yml index 3a5cbb2af..5b5ea1888 100644 --- a/.github/workflows/ansible-lint.yml +++ b/.github/workflows/ansible-lint.yml @@ -14,5 +14,8 @@ jobs: with: python-version: ${{ matrix.python-version }} architecture: x64 - - run: pip install -r <(grep ansible tests/requirements.txt) ansible-lint==4.3.7 - - run: ansible-lint -x 106,204,205,208 -v --force-color ./roles/*/ ./infrastructure-playbooks/*.yml site-container.yml.sample site-container.yml.sample \ No newline at end of file + - run: pip install -r <(grep ansible tests/requirements.txt) ansible-lint==4.3.7 netaddr + - run: ansible-lint -x 106,204,205,208 -v --force-color ./roles/*/ ./infrastructure-playbooks/*.yml site-container.yml.sample site-container.yml.sample + - run: ansible-playbook -i ./tests/functional/all_daemons/hosts site.yml.sample --syntax-check --list-tasks -vv + - run: ansible-playbook -i ./tests/functional/all_daemons/hosts site-container.yml.sample --syntax-check --list-tasks -vv + - run: ansible-playbook -i ./tests/functional/all_daemons/hosts infrastructure-playbooks/*.yml --syntax-check --list-tasks -vv