Skip to content

Commit

Permalink
osm2pgsql: Installation osm2pgsql venant des bullseye-backports
Browse files Browse the repository at this point in the history
osm2pgsql sur bullseye-backports corrige un souci sur des ANALYZE lancés en
trop lors de la mise à jour. Souci corrigé sur osm2pgsql 1.5.2.
  • Loading branch information
jocelynj committed Oct 22, 2023
1 parent 5c08e77 commit a16cbed
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
6 changes: 3 additions & 3 deletions roles/common/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -269,13 +269,13 @@
- set_fact: install_apache=false
when: install_apache is undefined

- name: add buster-backports for monit
- name: add backports
apt_repository:
filename: 'backports'
repo: 'deb http://ftp.debian.org/debian buster-backports main'
repo: 'deb http://ftp.debian.org/debian {{ ansible_distribution_release }}-backports main'
state: present
update_cache: yes
when: ansible_distribution_release == "buster"
when: ansible_distribution_release == "buster" or ansible_distribution_release == "bullseye"

- name: install packages
apt:
Expand Down
7 changes: 7 additions & 0 deletions roles/osm2pgsql/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,13 @@
- osmosis
- osmium-tool

- name: install packages
apt:
pkg:
- osm2pgsql
default_release: bullseye-backports
when: ansible_distribution_release == "bullseye"

- name: ensure postgresql server is running
service: name=postgresql state=started

Expand Down

0 comments on commit a16cbed

Please sign in to comment.