mirror of
https://github.com/internetarchive/brozzler.git
synced 2025-02-24 08:39:59 -05:00

Update the RethinkDB pubkey location and repo location based on their guide https://rethinkdb.com/docs/install/ubuntu/ Numpy has updated to no longer support 3.5, on 3.5, we should install a earlier version of Numpy to maintain compatibility.
31 lines
1.1 KiB
YAML
31 lines
1.1 KiB
YAML
---
|
|
- name: ensure rethinkdb apt public key is trusted
|
|
apt_key: url=https://download.rethinkdb.com/repository/raw/pubkey.gpg
|
|
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
|
|
become: true
|
|
- apt: update_cache=yes
|
|
become: true
|
|
- 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
|
|
- name: ensure rethinkdb instance config file is installed
|
|
template: src=templates/rethinkdb-brozzler.conf.j2
|
|
dest=/etc/rethinkdb/instances.d/rethinkdb-brozzler.conf
|
|
become: true
|
|
notify:
|
|
- restart rethinkdb
|