2016-06-30 17:50:11 -05:00
|
|
|
---
|
|
|
|
- name: ensure rethinkdb apt public key is trusted
|
2020-06-02 03:26:33 -04:00
|
|
|
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
|
2019-03-18 16:38:23 -07:00
|
|
|
apt_repository:
|
2020-06-02 03:26:33 -04:00
|
|
|
repo: 'deb https://download.rethinkdb.com/repository/ubuntu-{{ansible_lsb.codename|lower}} {{ansible_lsb.codename|lower}} main'
|
2019-03-18 16:38:23 -07:00
|
|
|
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:
|
2016-09-14 17:08:00 -07:00
|
|
|
- restart rethinkdb
|
2016-07-01 15:45:39 -05:00
|
|
|
- name: ensure rethinkdb starts on reboot
|
|
|
|
service: name=rethinkdb enabled=yes
|
2016-10-13 17:21:55 -07:00
|
|
|
- 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
|
2016-10-13 17:21:55 -07:00
|
|
|
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:
|
2016-09-14 17:08:00 -07:00
|
|
|
- restart rethinkdb
|