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.
22 lines
410 B
YAML
22 lines
410 B
YAML
---
|
|
|
|
- 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
|