Stop moving into ansible/ before running things

Makes life easier
This commit is contained in:
Jake Howard 2020-06-15 13:21:52 +01:00
parent 659eed4fb5
commit c09b46aac0
Signed by: jake
GPG key ID: 57AFB45680EDD477
3 changed files with 7 additions and 11 deletions

View file

@ -1,8 +1,8 @@
extends: default
ignore: |
galaxy_roles
group_vars/all/hosts.yml
ansible/galaxy_roles
ansible/group_vars/all/hosts.yml
rules:
document-start: disable

View file

@ -4,12 +4,10 @@ set -e
PATH=${PWD}/env/bin:${PATH}
cd ansible/
set -x
yamllint -sc yamllint.yml .
yamllint -sc ansible/yamllint.yml ansible/
ansible-lint main.yml -p -c .ansible-lint --exclude galaxy_roles/
ansible-lint ansible/main.yml -p -c ansible/.ansible-lint --exclude ansible/galaxy_roles/
ansible-playbook main.yml --syntax-check
cd ansible/ && ansible-playbook main.yml --syntax-check

View file

@ -8,8 +8,6 @@ set -x
python -m venv env
cd ansible/
pip install -r ansible/dev-requirements.txt
pip install -r dev-requirements.txt
ansible-galaxy install -r galaxy-requirements.yml
cd ansible/ && ansible-galaxy install -r galaxy-requirements.yml