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
|
extends: default
|
||||||
|
|
||||||
ignore: |
|
ignore: |
|
||||||
galaxy_roles
|
ansible/galaxy_roles
|
||||||
group_vars/all/hosts.yml
|
ansible/group_vars/all/hosts.yml
|
||||||
|
|
||||||
rules:
|
rules:
|
||||||
document-start: disable
|
document-start: disable
|
||||||
|
|
|
@ -4,12 +4,10 @@ set -e
|
||||||
|
|
||||||
PATH=${PWD}/env/bin:${PATH}
|
PATH=${PWD}/env/bin:${PATH}
|
||||||
|
|
||||||
cd ansible/
|
|
||||||
|
|
||||||
set -x
|
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
|
python -m venv env
|
||||||
|
|
||||||
cd ansible/
|
pip install -r ansible/dev-requirements.txt
|
||||||
|
|
||||||
pip install -r dev-requirements.txt
|
cd ansible/ && ansible-galaxy install -r galaxy-requirements.yml
|
||||||
|
|
||||||
ansible-galaxy install -r galaxy-requirements.yml
|
|
||||||
|
|
Loading…
Reference in a new issue