Move requirements files into ansible dir

This commit is contained in:
Jake Howard 2020-06-15 13:11:44 +01:00
parent 4d75130afd
commit 4d13e3c78f
Signed by: jake
GPG key ID: 57AFB45680EDD477
5 changed files with 16 additions and 10 deletions

View file

@ -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

View file

@ -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

View file

@ -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