opencollab: Initial version of role

This will download opencollab from github and install it with pip2.
Unfortunately ansible pip only checks if module is installed so
new versions are not updated automatically.

Running "pip2 uninstall opencollab" should trigger update on next
ansible run.
This commit is contained in:
Timo Makinen 2021-03-12 15:41:44 +00:00
parent 8a5d3cde28
commit 3eff758f5c

View file

@ -0,0 +1,22 @@
---
- name: install dependencies
package:
name: "{{ item }}"
state: installed
with_items:
- git
- python2
- name: copy package
git:
dest: /usr/local/src/opencollab
repo: "https://github.com/graphingwiki/opencollab.git"
version: fix-ssl-sni
- name: install package
pip:
name: /usr/local/src/opencollab
umask: "0022"
executable: pip2
extra_args: --no-index