Initial commit
This commit is contained in:
commit
e3639cc94c
18 changed files with 680 additions and 0 deletions
38
roles/mapserver/tasks/main.yml
Normal file
38
roles/mapserver/tasks/main.yml
Normal file
|
@ -0,0 +1,38 @@
|
|||
---
|
||||
|
||||
- name: Gather os specific variables
|
||||
block:
|
||||
- include_vars: "{{ item }}"
|
||||
with_first_found: # Files are in 'vars/' subdirectory and contain a one level dictionary 'var: value'
|
||||
- "{{ ansible_distribution }}-{{ ansible_distribution_major_version }}.yml"
|
||||
- "{{ ansible_distribution }}.yml"
|
||||
- "{{ ansible_os_family }}.yml"
|
||||
#- "defaults.yml" # No defaults for this role at the moment.
|
||||
rescue:
|
||||
- fail:
|
||||
msg: "Unexpected OS/Distribution. Create and fill vars/{{ ansible_distribution }}-{{ ansible_distribution_major_version }}.yml"
|
||||
|
||||
# Dedicated directories
|
||||
- name: Imposm dedicated directory
|
||||
file:
|
||||
path: /srv/osm/imposm
|
||||
state: directory
|
||||
- name: MapCache dedicated directory
|
||||
file:
|
||||
path: /srv/osm/mapcache
|
||||
state: directory
|
||||
|
||||
# Packages installation
|
||||
- import_tasks: 10_package-install.yml
|
||||
|
||||
# Database creation
|
||||
- import_tasks: 20_database-creation.yml
|
||||
|
||||
# Retrieve the OSM basemaps
|
||||
- import_tasks: 30_basemaps.yml
|
||||
|
||||
# Import with imposm
|
||||
- import_tasks: 40_imposm.yml
|
||||
|
||||
# Mapcache and Apache
|
||||
- import_tasks: 50_mapcache-and-apache.yml
|
Loading…
Add table
Add a link
Reference in a new issue