39 lines
1.1 KiB
YAML
39 lines
1.1 KiB
YAML
|
---
|
||
|
|
||
|
- 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
|