Stop moving into ansible/
before running things
Makes life easier
This commit is contained in:
parent
659eed4fb5
commit
c09b46aac0
3 changed files with 7 additions and 11 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue