Solved this in the end by installing postgresql-9.3 from Postgres APT repo:

- name: Add postgres repository
  apt_repository: repo='deb http://apt.postgresql.org/pub/repos/apt/ 
precise-pgdg main' state=present
- name: Add postgres repository key
  apt_key: url=http://apt.postgresql.org/pub/repos/apt/ACCC4CF8.asc 
state=present
- name: Install postgresql
  apt: pkg=postgresql-9.3 state=present force=yes
- name: Restart postgresql server
  service: name=postgresql state=started enabled=yes


That works without problems. But why it doesn't work using the default 
ubuntu repo is a mystery. :-)


On Tuesday, 26 November 2013 15:34:20 UTC, Brian Coca wrote:
>
> yes, it is non-interactive, but in my case it still sets up (and starts) 
> the service, creates users and initializes db.
>

-- 
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-project+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to