---
- name: populate database
  command: /home/vagrant/venv/bin/python /home/vagrant/src/db/manage.py dev
  become: yes
  become_user: radar

- name: create the radar test database
  postgresql_db: name=radar_test
  become: yes
  become_user: postgres

- name: grant radar privileges on radar_test
  postgresql_user: db=radar_test name=radar
  become: yes
  become_user: postgres

- name: add the uuid-ossp extension to radar_test
  postgresql_ext: name=uuid-ossp db=radar_test
  become: yes
  become_user: postgres

---
- name: populate database
  command: /home/vagrant/venv/bin/python /home/vagrant/src/db/manage.py dev
  become: yes
  become_user: radar

- name: create the radar test database
  postgresql_db: name=radar_test
  become: yes
  become_user: postgres

- name: grant radar privileges on radar_test
  postgresql_user: db=radar_test name=radar
  become: yes
  become_user: postgres

- name: add the uuid-ossp extension to radar_test
  postgresql_ext: name=uuid-ossp db=radar_test
  become: yes
  become_user: postgres

- name: create the vagrant postgresql user
  postgresql_user: name=vagrant password={{ db_password }}
  become: yes
  become_user: postgres

Create a vagrant postgresql role
Create a vagrant postgresql role
