You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
470 B
YAML
20 lines
470 B
YAML
7 years ago
|
- hosts: all
|
||
|
tasks:
|
||
|
- name: Make virtualenv
|
||
|
pip:
|
||
|
virtualenv: /tmp/issue_151_virtualenv
|
||
|
name: psycopg2
|
||
|
|
||
|
- name: Use virtualenv for the Python interpeter
|
||
|
set_fact: ansible_python_interpreter=/tmp/issue_151_virtualenv/bin/python
|
||
|
|
||
|
- name: Ensure the app DB user exists
|
||
|
postgresql_user:
|
||
|
db: postgres
|
||
|
login_host: localhost
|
||
|
login_user: "{{ansible_user_id}}"
|
||
|
login_password: "x"
|
||
|
name: fakeuser
|
||
|
state: present
|
||
|
|