From 5f9605745f4f8e59d5aba78da18b8a50bc4a5d88 Mon Sep 17 00:00:00 2001 From: Guilhem Moulin Date: Mon, 10 Jun 2024 06:02:45 +0200 Subject: Copy webmap-import. --- tasks/webmap.yml | 139 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 139 insertions(+) (limited to 'tasks/webmap.yml') diff --git a/tasks/webmap.yml b/tasks/webmap.yml index ff212e5..053b744 100644 --- a/tasks/webmap.yml +++ b/tasks/webmap.yml @@ -12,6 +12,7 @@ - python3-gdal - python3-lxml - python3-requests + - python3-systemd - python3-tqdm - python3-urllib3 - python3-xdg @@ -117,6 +118,16 @@ - meta: flush_handlers +- name: Create system user '_webmap-import' + user: name=_webmap-import system=true + group=_webmap + createhome=false + home=/nonexistent + shell=/usr/sbin/nologin + comment="Webmap update (extract/import)" + password="!" + state=present + - name: Install PostgreSQL and PostGIS apt: pkg={{ packages }} vars: @@ -137,6 +148,13 @@ - meta: flush_handlers +# Usage: \sudo -u postgres psql