Any ideas anyone?
On Friday, 19 December 2014 13:57:46 UTC+8, Michael Shi wrote:
>
> I'm trying to use the postgresql_user module, but I keep getting *unable
> to connect to database: fe_sendauth: no password supplied*
> Doing the same on postgresql_db module seems to work
> Is it a problem authenticating as the postgres user?
>
> # users.yml
> - name: PostgreSQL | Make sure the PostgreSQL users are present
> postgresql_user:
> name: "{{item.name}}"
> password: "{{item.password | default('pass')}}"
> state: present
> login_host: "{{item.host | default('localhost')}}"
> with_items: postgresql_users
> when: postgresql_users|length > 0
>
> # main.yml
> - include: users.yml
> tags: [postgresql, postgresql-users]
> sudo: yes
> sudo_user: postgres
>
--
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 [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/ansible-project/db80fa81-6588-42ea-8b39-0d6dfeb20d4c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.