---
- hosts: typer
  become: true

  vars:
    ansible_python_interpreter: "/usr/bin/python3"

  roles:
    - role: letsencrypt
      extra_location_blocks: "location /api { rewrite /api(.*) $1 break; include uwsgi_params; uwsgi_pass unix:/tmp/uwsgieved.sock; }"
    - eve
    - mongo
    - deploy
    - upgraded

---
- hosts: typer
  become: true

  vars:
    ansible_python_interpreter: "/usr/bin/python3"
    extra_location_blocks: "location /api { rewrite /api(.*) $1 break; include uwsgi_params; uwsgi_pass unix:/tmp/uwsgieved.sock; }"

  roles:
    - letsencrypt
    - eve
    - mongo
    - deploy
    - upgraded

Fix extra location blocks override
Fix extra location blocks override
