444 B
444 B
Ansible: Setup App
This playbook installs app from repository and bind Traefik on defined host.
Installing
Copy then change values of hosts example file:
$ cp hosts.example.ini hosts.ini
Then run the playbook:
$ ansible-playbook -i hosts.ini playbook.yml \
-e name=myapp \
-e repository=https://git.example.com/vendor/app.git \
-e version=master \
-e host=myapp.example.com
-e dockerfile=Dockerfile