Fix tests:

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.
This commit is contained in:
NGTmeaty 2020-06-02 03:26:33 -04:00 committed by GitHub
parent 973af2c16e
commit 25313a97de
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 19 additions and 3 deletions

View File

@ -59,6 +59,22 @@
become: true become: true
file: path={{venv_root}}/websockify-ve3 state=directory owner={{user}} file: path={{venv_root}}/websockify-ve3 state=directory owner={{user}}
#get python3 version for checks below
- shell: "python --version"
register: python_installed
#websockify's dependency numpy's latest version no longer supports 3.5
- name: install old version of numpy for websockify
pip:
name: numpy==1.18.4
virtualenv: '{{venv_root}}/websockify-ve3'
virtualenv_python: python3
virtualenv_command: python3 /usr/lib/python3/dist-packages/virtualenv.py
extra_args: '--no-input --upgrade --pre --cache-dir=/tmp/pip-cache'
become: true
become_user: '{{user}}'
when: '"Python 3.5" in python_installed.stdout'
- name: install websockify in virtualenv - name: install websockify in virtualenv
pip: pip:
name: git+https://github.com/kanaka/websockify.git#egg=websockify name: git+https://github.com/kanaka/websockify.git#egg=websockify

View File

@ -1,10 +1,10 @@
--- ---
- name: ensure rethinkdb apt public key is trusted - name: ensure rethinkdb apt public key is trusted
apt_key: url=http://download.rethinkdb.com/apt/pubkey.gpg apt_key: url=https://download.rethinkdb.com/repository/raw/pubkey.gpg
become: true become: true
- name: ensure rethinkdb repo is in apt sources.list - name: ensure rethinkdb repo is in apt sources.list
apt_repository: apt_repository:
repo: 'deb http://download.rethinkdb.com/apt {{ansible_lsb.codename|lower}} main' repo: 'deb https://download.rethinkdb.com/repository/ubuntu-{{ansible_lsb.codename|lower}} {{ansible_lsb.codename|lower}} main'
state: present state: present
become: true become: true
- apt: update_cache=yes - apt: update_cache=yes