From 088fd761090d2a6d276c14553fc24132eddd0d53 Mon Sep 17 00:00:00 2001 From: David Wilson Date: Sun, 18 Mar 2018 20:35:38 +0545 Subject: [PATCH] issue #152: import reproduction --- examples/playbook/issue_152.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 examples/playbook/issue_152.yml diff --git a/examples/playbook/issue_152.yml b/examples/playbook/issue_152.yml new file mode 100644 index 00000000..af7d257a --- /dev/null +++ b/examples/playbook/issue_152.yml @@ -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 +