Using requirements.yml file to install ansible roles

This commit is contained in:
José Armesto 2017-04-01 19:46:34 +02:00
parent c1ce104cf8
commit 0c86a0caa0
No known key found for this signature in database
GPG key ID: C10B9C02529D58DB
3 changed files with 8 additions and 3 deletions

View file

@ -21,8 +21,7 @@ install:
- pip install boto3
- pip install troposphere
- printf '[defaults]\nroles_path=../' >ansible.cfg
- ansible-galaxy install -p ../ fiunchinho.wimpy,feature/decouple_role
- ansible-galaxy install -p ../ fiunchinho.wimpy.build
- ansible-galaxy install -p ../ -r deploy/requirements.yml
script:
- ./mvnw package

View file

@ -18,4 +18,4 @@
healthy_threshold: 3
roles:
- role: wimpy.build
- role: fiunchinho.wimpy
- role: wimpy.deploy

6
deploy/requirements.yml Normal file
View file

@ -0,0 +1,6 @@
- src: https://github.com/fiunchinho/wimpy.build
name: wimpy.build
- src: https://github.com/fiunchinho/wimpy
version: feature/decouple_role
name: wimpy.deploy