2016-06-30 17:50:11 -05:00
|
|
|
---
|
|
|
|
- name: ensure rethinkdb apt public key is trusted
|
|
|
|
apt_key: url=http://download.rethinkdb.com/apt/pubkey.gpg
|
|
|
|
become: true
|
|
|
|
- name: ensure rethinkdb repo is in apt sources.list
|
|
|
|
apt_repository: repo='deb http://download.rethinkdb.com/apt trusty main'
|
|
|
|
state=present
|
|
|
|
become: true
|
|
|
|
- name: ensure rethinkdb package is installed
|
|
|
|
apt: name=rethinkdb state=present
|
|
|
|
become: true
|
|
|
|
notify:
|
2016-09-14 17:08:00 -07:00
|
|
|
- restart rethinkdb
|
|
|
|
# XXX rethinkdb fails to start in spite of this, I think because /vagrant
|
|
|
|
# gets mounted too late, and it tries to log there
|
2016-07-01 15:45:39 -05:00
|
|
|
- name: ensure rethinkdb starts on reboot
|
|
|
|
service: name=rethinkdb enabled=yes
|
2016-06-30 17:50:11 -05:00
|
|
|
- name: ensure rethinkdb instance config file is installed
|
2016-09-14 17:08:00 -07:00
|
|
|
template: src=templates/rethinkdb-brozzler-vagrant-1.conf.j2
|
|
|
|
dest=/etc/rethinkdb/instances.d/rethinkdb-brozzler-vagrant-1.conf
|
2016-06-30 17:50:11 -05:00
|
|
|
become: true
|
|
|
|
notify:
|
2016-09-14 17:08:00 -07:00
|
|
|
- restart rethinkdb
|