issue #152: import reproduction

This commit is contained in:
David Wilson 2018-03-18 20:35:38 +05:45
parent dec3af375a
commit 088fd76109
1 changed files with 24 additions and 0 deletions

View File

@ -0,0 +1,24 @@
- 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
- command: sleep 123123
- 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