mirror of
https://github.com/bigchaindb/bigchaindb.git
synced 2024-10-13 13:34:05 +00:00
initial tasks to install RethinkDB
This commit is contained in:
parent
d7a2667409
commit
a0b1ade755
@ -9,3 +9,4 @@
|
||||
- bcdb_base
|
||||
- ntp
|
||||
- db_storage
|
||||
- install_rethinkdb
|
||||
|
22
ntools/one-m/ansible/roles/install_rethinkdb/tasks/main.yml
Normal file
22
ntools/one-m/ansible/roles/install_rethinkdb/tasks/main.yml
Normal 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
|
Loading…
x
Reference in New Issue
Block a user