I replaced all sudo lines with the login_user and login_password to use to
connect/authenticate to the database.
I guess that this is alright to use if the file holding the variables
has got
restricted permissions. I didn't test yet but 440 should do.
On 11/03/2014 03:18 PM, Michael DeHaan wrote
"Ok I didn't see that the syntax had changed."
I'm not following the above. What did you do to get around the above?
On Sun, Nov 2, 2014 at 8:30 AM, 'Diogene Laerce' via Ansible Project <
ansible-project@googlegroups.com> wrote:
>
> On 11/02/2014 01:49 PM, 'Diogene Laerce' via Ansible Projec
On 11/02/2014 01:49 PM, 'Diogene Laerce' via Ansible Project wrote:
> Hi,
>
> I try to run this in a dedicated playbook test.yml :
>
> ---
> - hosts: localhost
> tasks:
> - name: Create Django user for database
> sudo: yes
> sudo_user: postgres
> postgresql_user: >
> user=dja
Hi,
I try to run this in a dedicated playbook test.yml :
---
- hosts: localhost
tasks:
- name: Create Django user for database
sudo: yes
sudo_user: postgres
postgresql_user: >
user=django
password=django
role_attr_flags=CREATEDB,NOSUPERUSER,NOCREATEROLE
ansible-