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:
parent
8a5d3cde28
commit
3eff758f5c
1 changed files with 22 additions and 0 deletions
22
roles/opencollab/tasks/main.yml
Normal file
22
roles/opencollab/tasks/main.yml
Normal 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
|
Loading…
Add table
Reference in a new issue