no password supply

63 views
Skip to first unread message

Diogene Laerce

unread,
Nov 2, 2014, 7:58:08 AM11/2/14
to ansible...@googlegroups.com
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-playbook -K test.yml, I then enter the password and I get this
in return : fe_sendauth : no password supplied

I don't understand why, does anyone ?

Thank you

--
“One original thought is worth a thousand mindless quotings.”
“Le vrai n'est pas plus sûr que le probable.”

Diogene Laerce


signature.asc

Diogene Laerce

unread,
Nov 2, 2014, 8:38:52 AM11/2/14
to ansible...@googlegroups.com

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=django
> password=django
> role_attr_flags=CREATEDB,NOSUPERUSER,NOCREATEROLE
>
> ansible-playbook -K test.yml, I then enter the password and I get this
> in return : fe_sendauth : no password supplied
>
> I don't understand why, does anyone ?

Ok I didn't see that the syntax had changed.
signature.asc

Michael DeHaan

unread,
Nov 3, 2014, 9:18:39 AM11/3/14
to ansible...@googlegroups.com
"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?


Diogene Laerce

unread,
Nov 3, 2014, 11:34:30 AM11/3/14
to ansible...@googlegroups.com
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...@googlegroups.com
> <mailto:ansible...@googlegroups.com>> wrote:
>
>
> 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=django
> > password=django
> > role_attr_flags=CREATEDB,NOSUPERUSER,NOCREATEROLE
> >
> > ansible-playbook -K test.yml, I then enter the password and I
> get this
> > in return : fe_sendauth : no password supplied
> >
> > I don't understand why, does anyone ?
>
> Ok I didn't see that the syntax had changed.
>
> Thank you
>
> --
> “One original thought is worth a thousand mindless quotings.”
> “Le vrai n'est pas plus sûr que le probable.”
>
> Diogene Laerce
>
>
>
> --
> You received this message because you are subscribed to the Google
> Groups "Ansible Project" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to ansible-proje...@googlegroups.com
> <mailto:ansible-proje...@googlegroups.com>.
> To post to this group, send email to ansible...@googlegroups.com
> <mailto:ansible...@googlegroups.com>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ansible-project/CA%2BnsWgzFLSGmvE%2BafNgmT1bZXbxiTejzBFO%2B5Jip9O0uJ1k3Rw%40mail.gmail.com
> <https://groups.google.com/d/msgid/ansible-project/CA%2BnsWgzFLSGmvE%2BafNgmT1bZXbxiTejzBFO%2B5Jip9O0uJ1k3Rw%40mail.gmail.com?utm_medium=email&utm_source=footer>.
> For more options, visit https://groups.google.com/d/optout.
signature.asc
Reply all
Reply to author
Forward
0 new messages