Giter VIP home page Giter VIP logo

ansible-postgis's Issues

Fails when already installed

hello,

thanks for the script.
Here is how I use on ubuntu wily:

  vars:
    postgresql_version: "9.4"
    postgresql_package_version: "9.4.5-1"
    postgis_version: "2.1"
    postgis_package_version: "2.1.8+dfsg-4"

  roles:
    - { role: "azavea.postgis" }

works fine on a server with no postgres installed, but once it works launching ansible again with the exact same script gives:

TASK: [azavea.postgresql | Install PostgreSQL] ********************************
failed: [139.162.203.160] => (item=postgresql-9.4=9.4.5-1,postgresql-server-dev-9.4=9.4.5-1) => {"failed": true, "item": "postgresql-9.4=9.4.5-1,postgresql-server-dev-9.4=9.4.5-1"}
stderr: E: There are problems and -y was used without --force-yes

stdout: Reading package lists...
Building dependency tree...
Reading state information...
Suggested packages:
  oidentd ident-server locales-all
The following packages will be REMOVED:
  postgresql-contrib-9.4
The following packages will be DOWNGRADED:
  postgresql-9.4
0 upgraded, 0 newly installed, 1 downgraded, 1 to remove and 51 not upgraded.
Need to get 0 B/2837 kB of archives.
After this operation, 8386 kB disk space will be freed.

msg: '/usr/bin/apt-get -y -o "Dpkg::Options::=--force-confdef" -o "Dpkg::Options::=--force-confold"   install 'postgresql-9.4=9.4.5-1'' failed: E: There are problems and -y was used without --force-yes


FATAL: all hosts have already failed -- aborting

any idea?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.