initial tasks to install RethinkDB

This commit is contained in:
troymc 2016-08-26 14:28:19 +02:00
parent d7a2667409
commit a0b1ade755
2 changed files with 23 additions and 0 deletions

View File

@ -9,3 +9,4 @@
- bcdb_base
- ntp
- db_storage
- install_rethinkdb

View File

@ -0,0 +1,22 @@
---
# ansible/roles/install_rethinkdb/tasks/main.yml
# Note: the .list extension will be added to the rethinkdb filename automatically
- name: Ensure RethinkDB's APT repository for Ubuntu trusty is present in /etc/apt/sources.list.d/rethinkdb.list
apt_repository:
repo='deb http://download.rethinkdb.com/apt trusty main'
filename=rethinkdb
state=present
become: true
- name: Ensure RethinkDB's public GPG key is in the set of APT keys
apt_key: url=http://download.rethinkdb.com/apt/pubkey.gpg state=present
become: true
- name: Ensure the latest rethinkdb Ubuntu package is installed
apt: name=rethinkdb state=latest update_cache=yes
become: true
- name: Ensure the /data directory's owner and group are both 'rethinkdb'
file: path=/data state=directory owner=rethinkdb group=rethinkdb
become: true