23 lines
444 B
Markdown
23 lines
444 B
Markdown
# Ansible: Setup App
|
|
|
|
This playbook installs app from repository and bind Traefik on defined host.
|
|
|
|
## Installing
|
|
|
|
Copy then change values of hosts example file:
|
|
|
|
```bash
|
|
$ cp hosts.example.ini hosts.ini
|
|
```
|
|
|
|
Then run the playbook:
|
|
|
|
```bash
|
|
$ 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
|
|
```
|