24 lines
886 B
YAML
Raw Normal View History

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:
- 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
- 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
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:
- restart rethinkdb