-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ansible-ckan-role (#10): ansible/playbooks/postgresql.yml added
- Loading branch information
Showing
10 changed files
with
82 additions
and
75 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
--- | ||
# FILE: playbooks/ckan-setup.yml | ||
# LICENSE: Public Domain | ||
# DESCRIPTION: Install CKAN on the host | ||
# | ||
# REQUIES: roles/ckan (already on this project) | ||
# ansible-playbook -i inventories/etica.dev playbooks/ckan-setup.yml | ||
|
||
- hosts: all | ||
roles: | ||
- ckan |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
--- | ||
# FILE: playbooks/postgresql.yml | ||
# LICENSE: Public Domain | ||
# DESCRIPTION: Install postgresql on the host. | ||
# It's used by CKAN. You can skip this playbook | ||
# SEE: https://github.com/geerlingguy/ansible-role-postgresql | ||
|
||
# ansible-playbook -i inventories/etica.dev playbooks/postgresql.yml | ||
|
||
- hosts: all | ||
roles: | ||
- geerlingguy.postgresql |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,6 @@ | ||
--- | ||
# defaults file for ckan | ||
# defaults file for ckan | ||
|
||
# This is how the package was created https://github.com/ckan/ckan-packaging/blob/master/package.yml | ||
ckan_package: "python-ckan_2.8-bionic_amd64.deb" | ||
ckan_package_url: "http://packaging.ckan.org/{{ ckan_package }}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
--- | ||
# FILE: playbooks/roles/ckan/tasks/install.yml | ||
# LICENSE: Public Domain | ||
|
||
- name: "CKAN | Install {{ ckan_package_url }}" | ||
apt: | ||
deb: "{{ ckan_package_url }}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,27 @@ | ||
--- | ||
# tasks file for ckan | ||
# FILE: playbooks/roles/ckan/tasks/main.yml | ||
# LICENSE: Public Domain | ||
# SEE: https://docs.ckan.org/en/2.8/maintaining/installing/install-from-package.html | ||
# SEE: https://docs.ckan.org/en/2.8/maintaining/installing/install-from-source.html | ||
|
||
- name: Ubuntu? | ||
fail: | ||
msg: "This role as designed to only Ubuntu 18.04. Please look for other alternatives" | ||
when: ansible_distribution != 'Ubuntu' | ||
|
||
# # SEE http://packaging.ckan.org/ | ||
# - name: "ping all" | ||
# ping: | ||
# data: pong | ||
|
||
# - name: "Check if {{ traefik_install_base }}traefik exists" | ||
# stat: | ||
# path: "{{ traefik_install_base }}traefik" | ||
# register: stat_result | ||
|
||
# - debug: var=stat_result | ||
|
||
- name: "install.yml" | ||
include: install.yml | ||
# when: | ||
# - "(not stat_result.stat.exists) or (traefik_force_reinstall|bool)" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters