Lab 11 - Multitier Architecture¶
Mandatory¶
Create a new host group¶
- Create a new host group for
flask_appin both inventoriestestandprod - Change the
testandprodhost group to use the new hostgroupflask_app - Create the variable
flask_app_sourceonly for theflask_appgroup with the valuehttps://github.com/pstauffer/flask-mysql-app.git
Extend your flask_app role¶
- Use the defined
flask_app_sourcevariable in your task file for the git checkout - Create a dependency on the already created
piprole - Run the playbook
deploy.ymlfor both inventoriestestandprod - Verify the checkout of the correct version
Commit your changes¶
- add all files to your git repo and commit it