---
- hosts: webservers
  gather_facts: false

  become: true
  remote_user: ubuntu

  vars_files:
    - env_vars/base.yml
    - env_vars/{{ env }}.yml
    - env_vars/{{ env }}-vault.yml

  roles:
    - database
    - cdriehuys.django-app
    - cdriehuys.nginx
    - letsencrypt

---
- hosts: webservers
  gather_facts: false

  become: true
  remote_user: ubuntu

  vars_files:
    - env_vars/base.yml
    - env_vars/{{ env }}.yml
    - env_vars/{{ env }}-vault.yml

  pre_tasks:
    - name: Update apt repositories
      apt:
        update_cache: true

  roles:
    - database
    - cdriehuys.django-app
    - cdriehuys.nginx
    - letsencrypt

Fix issue with finding python3-pip package.
Fix issue with finding python3-pip package.

When deploying to a new machine, 'apt update' was not being run because
we had a cache time of an hour, and the machine had been provisioned
less than an hour ago. We now avoid this by indiscriminantly running
'apt update' before every deploy.

Fixes #278
