I use ubuntu 12.04 and the following 'just works':

    - name: Installing PosgreSQL
      apt: name={{item}} state=latest
      with_items:
        - postgresql-{{postgresql_version}}
        - postgresql-contrib-{{postgresql_version}}
        - python-psycopg2

    - name: Make sure its running
      service: name=postgresql state=started enabled=yes

but be careful when installing more than 1 version (it is possible) or if
you have old config files as postgresql package will 'disable' it's own
startup, check
 /etc/postgresql/<version>/main/start.conf, must be set to auto, can be
manual or disabled.

-- 
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].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to