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