31 lines
1.1 KiB
YAML
Raw Normal View History

2016-06-30 17:50:11 -05:00
---
- name: ensure rethinkdb apt public key is trusted
apt_key: url=https://download.rethinkdb.com/repository/raw/pubkey.gpg
2016-06-30 17:50:11 -05:00
become: true
- name: ensure rethinkdb repo is in apt sources.list
apt_repository:
repo: 'deb https://download.rethinkdb.com/repository/ubuntu-{{ansible_lsb.codename|lower}} {{ansible_lsb.codename|lower}} main'
state: present
2016-06-30 17:50:11 -05:00
become: true
2016-10-14 13:47:54 -07:00
- apt: update_cache=yes
become: true
2016-06-30 17:50:11 -05:00
- name: ensure rethinkdb package is installed
apt: name=rethinkdb state=present
become: true
notify:
- restart rethinkdb
- name: ensure rethinkdb starts on reboot
service: name=rethinkdb enabled=yes
- stat: path=/var/log/rethinkdb.log
register: p
- name: ensure user rethinkdb owns /var/log/rethinkdb.log
file: path=/var/log/rethinkdb.log owner=rethinkdb state=touch mode=0644
when: not p.stat.exists
become: true
2016-06-30 17:50:11 -05:00
- name: ensure rethinkdb instance config file is installed
template: src=templates/rethinkdb-brozzler.conf.j2
dest=/etc/rethinkdb/instances.d/rethinkdb-brozzler.conf
2016-06-30 17:50:11 -05:00
become: true
notify:
- restart rethinkdb