pilot-playbooks/README.md

730 B

Ansible: Setup App

This playbook installs app from repository and bind Traefik on defined host.

Usage

Copy then change values of hosts example file :

$ cp hosts.example.ini hosts.ini

Then create a file vars.json vars who contain :

{
  "name": "myapp",
  "repository": "https://git.example.com/vendor/app.git",
  "version": "master",
  "host": "myapp.example.com",
  "dockerfile": "Dockerfile",
  "volumes": {
    "storage": "/app/storage"
  },
  "envvars": {
    "APP_NAME": "Wonderful",
    "APP_ENV": "production"
  }
}

Then run a playbook:

$ ansible-playbook -i hosts.ini -e @vars.json playbooks/app-install.yml

Available playbooks:

  • app-install
  • app-start
  • app-stop