Correct.
Something is off with your custom apt-get repositories. Fix that manually
first, but without adding potentially complicating factors like Ansible to
the mix. Once you've established your steps actually work, only then comes
the time to add Ansible.

Depending on your environment it might be less hassle to apt-get
dist-upgrade to Ubuntu 16.04 which already has PG 9.5.

Dick


On Mon, 30 Jan 2017 at 18:52, Dick Davies <[email protected]> wrote:

The error looks a lot like apt-get is unable to find the packages
you want. Until you fix that I don't think there's much Ansible can
do, it's just asking apt-get to install the packages you specify.

On 30 January 2017 at 15:54, Shyam Yenna <[email protected]> wrote:

I posted exact error message in my first mail for below step.

Does this step return an error?

> - name: PostgreSQL | Install PostgreSQL
>   apt:
>     name:               "{{ item }}"
>     state:              present
>     update_cache:       true
>   environment:          "{{ postgresql_env }}"
>   when: repoadd.changed
>   with_items:
>     - "postgresql-common"
>     - "postgresql-{{ postgresql_version }}"
>     - "postgresql-client-{{ postgresql_version }}"
>     - "postgresql-contrib-{{ postgresql_version }}"



Unable to install package as depends are not met. Technically i have added
repository of postgresql 9.5, still i get dependencies not match with exact
version number to proceed on installation.


Thanks
Shyam


On Sunday, January 29, 2017 at 11:19:31 AM UTC-5, Johannes Kastl wrote:

On 29.01.17 16:05 Shyam Yenna wrote:

> - name: PostgreSQL | Make sure the dependencies are installed
>   apt:
>     name:               "{{ item }}"
>     state:              present
>     update_cache:       true
>   with_items:   ['python-psycopg2', 'python-pycurl', 'locales',
'sysstat',
> 'libpq5']

Does this step return an error?

> - name: PostgreSQL | Install PostgreSQL
>   apt:
>     name:               "{{ item }}"
>     state:              present
>     update_cache:       true
>   environment:          "{{ postgresql_env }}"
>   when: repoadd.changed
>   with_items:
>     - "postgresql-common"
>     - "postgresql-{{ postgresql_version }}"
>     - "postgresql-client-{{ postgresql_version }}"
>     - "postgresql-contrib-{{ postgresql_version }}"

What is the actual error message?

>From your playbook it could be lots of things, from missing variables
to whatever. Hard to say.

Johannes

-- 
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/625a3516-1316-497b-b2d6-a143177af313%40googlegroups.com
<https://groups.google.com/d/msgid/ansible-project/625a3516-1316-497b-b2d6-a143177af313%40googlegroups.com?utm_medium=email&utm_source=footer>
.

For more options, visit https://groups.google.com/d/optout.


-- 
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/CAK5eLPR0EPCmBVeQzhzK_CJ_9x5H956nEzjH-bx3E%3DOudwZ4qw%40mail.gmail.com
<https://groups.google.com/d/msgid/ansible-project/CAK5eLPR0EPCmBVeQzhzK_CJ_9x5H956nEzjH-bx3E%3DOudwZ4qw%40mail.gmail.com?utm_medium=email&utm_source=footer>
.
For more options, visit https://groups.google.com/d/optout.

-- 
Sent from Gmail Mobile

-- 
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/CAEQQDNnLR8OXVPF5ebQSRnYJ72dwUtO%2BD8et7g%3DMOwZ3h%3Dg1xA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to