diff --git a/ansible/playbook.yml b/ansible/playbook.yml index b53b687..50eb842 100644 --- a/ansible/playbook.yml +++ b/ansible/playbook.yml @@ -11,4 +11,7 @@ - import_playbook: playbooks/traefik.yml - import_playbook: playbooks/docker-setup-host.yml - import_playbook: playbooks/docker-full-stack-start.yml +- import_playbook: playbooks/redis.yml - import_playbook: playbooks/postgresql.yml +- import_playbook: playbooks/solr.yml +# - import_playbook: playbooks/ckan-setup.yml diff --git a/ansible/playbooks/redis.yml b/ansible/playbooks/redis.yml new file mode 100644 index 0000000..92eb159 --- /dev/null +++ b/ansible/playbooks/redis.yml @@ -0,0 +1,18 @@ +--- +# FILE: playbooks/redis.yml +# LICENSE: Public Domain +# DESCRIPTION: Install redis on the host. +# It's used by CKAN. You can skip this playbook +# SEE: https://github.com/DavidWittman/ansible-redis + +# ansible-playbook -i inventories/etica.dev playbooks/redis.yml + +- hosts: all + vars: + - redis_bind: 127.0.0.1 + redis_version: 5.0.8 + redis_verify_checksum: true + # See https://github.com/antirez/redis-hashes + redis_checksum: "sha256:f3c7eac42f433326a8d981b50dba0169fdfaf46abb23fcda2f933a7552ee4ed7" + roles: + - davidwittman.redis diff --git a/ansible/playbooks/solr.yml b/ansible/playbooks/solr.yml new file mode 100644 index 0000000..5da269c --- /dev/null +++ b/ansible/playbooks/solr.yml @@ -0,0 +1,13 @@ +--- +# FILE: playbooks/solr.yml +# LICENSE: Public Domain +# DESCRIPTION: Install solr on the host. +# It's used by CKAN. You can skip this playbook +# SEE: https://github.com/geerlingguy/ansible-role-solr + +# ansible-playbook -i inventories/etica.dev playbooks/solr.yml + +- hosts: all + roles: + - geerlingguy.java + - geerlingguy.solr diff --git a/ansible/requirements.yml b/ansible/requirements.yml index bb865c6..b888f3a 100644 --- a/ansible/requirements.yml +++ b/ansible/requirements.yml @@ -17,3 +17,14 @@ # https://github.com/geerlingguy/ansible-role-postgresql - src: geerlingguy.postgresql # Tested with v2.2.0, 2020-03-20 + +- src: geerlingguy.java + # Tested with v1.9.7 + +# https://github.com/geerlingguy/ansible-role-solr +- src: geerlingguy.solr + # Tested with v5.1.0 + +# https://github.com/DavidWittman/ansible-redis +- src: davidwittman.redis + # Tested with v1.2.7