Move requirements files into ansible dir
This commit is contained in:
parent
4d75130afd
commit
4d13e3c78f
5 changed files with 16 additions and 10 deletions
|
@ -2,11 +2,11 @@ extends: default
|
|||
|
||||
ignore: |
|
||||
galaxy_roles
|
||||
ansible/group_vars/all/hosts.yml
|
||||
group_vars/all/hosts.yml
|
||||
|
||||
rules:
|
||||
document-start: "disable"
|
||||
truthy: "disable"
|
||||
document-start: disable
|
||||
truthy: disable
|
||||
quoted-strings:
|
||||
quote-type: double
|
||||
required: only-when-needed
|
|
@ -4,10 +4,12 @@ set -e
|
|||
|
||||
PATH=${PWD}/env/bin:${PATH}
|
||||
|
||||
cd ansible/
|
||||
|
||||
set -x
|
||||
|
||||
yamllint -sc yamllint.yml ansible/
|
||||
yamllint -sc yamllint.yml .
|
||||
|
||||
ansible-lint ansible/main.yml -p -c ansible/.ansible-lint
|
||||
ansible-lint main.yml -p -c .ansible-lint --exclude galaxy_roles/
|
||||
|
||||
cd ansible/ && ansible-playbook main.yml --syntax-check
|
||||
ansible-playbook main.yml --syntax-check
|
||||
|
|
|
@ -1,11 +1,15 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
set -ex
|
||||
set -e
|
||||
|
||||
PATH=${PWD}/env/bin:${PATH}
|
||||
|
||||
set -x
|
||||
|
||||
python -m venv env
|
||||
|
||||
env/bin/pip install -r dev-requirements.txt
|
||||
|
||||
cd ansible/
|
||||
|
||||
../env/bin/ansible-galaxy install -r galaxy-requirements.yml
|
||||
pip install -r dev-requirements.txt
|
||||
|
||||
ansible-galaxy install -r galaxy-requirements.yml
|
||||
|
|
Loading…
Reference in a new issue