An Ansible role for installing PostGIS.
postgis_version
- PostGIS version (default:2.1
)postgis_package_version
- PostGIS package version (default:2.1.2+dfsg-2
)
See the examples directory.
An Ansible role for installing PostGIS.
License: Apache License 2.0
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?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.