---
- name: install apt package deps for dev environment
  apt: pkg="{{ item }}" state=latest
  with_items: dev_deps

- name: install pip deps for dev env
  pip: requirements="{{ dev_pip_requirements }}"

---
- name: install apt package deps for dev environment
  apt: pkg="{{ item }}" state=latest
  with_items: dev_deps

- name: install pip deps for dev env
  pip: requirements="{{ dev_pip_requirements }}"

- name: set SECUREDROP_ENV in bashrc
  lineinfile:
    dest: /home/{{ securedrop_user }}/.bashrc
    state: present
    insertafter: EOF
    line: "export SECUREDROP_ENV=dev"

Set SECUREDROP_ENV for development environment
Set SECUREDROP_ENV for development environment

This makes running certain tasks manually, such as the individual
`source.py` or `journalist.py` applications, less error-prone. You need
to set `SECUREDROP_ENV=dev` in order to have `FlaskConfig.DEBUG = True`,
which is necessary for Flask to serve the static files.
