Getting started

Example inventory

To enable Green Unicorn service on a host, that host should be added to to a specific Ansible inventory group:

[debops_service_gunicorn]
hostname

Example playbook

If you are using this role without DebOps, here's an example Ansible playbook that uses the debops.gunicorn role:

---

- name: Manage Green Unicorn service
  hosts: [ 'debops_service_gunicorn' ]
  become: True

  environment: '{{ inventory__environment | d({})
                   | combine(inventory__group_environment | d({}))
                   | combine(inventory__host_environment  | d({})) }}'

  roles:

    - role: debops.gunicorn
      tags: [ 'role::gunicorn' ]