Skip to content

Instantly share code, notes, and snippets.

@mgrauer
Created January 14, 2020 23:27
Show Gist options
  • Save mgrauer/d2f6ff230de8bc829df0732cf666a932 to your computer and use it in GitHub Desktop.
Save mgrauer/d2f6ff230de8bc829df0732cf666a932 to your computer and use it in GitHub Desktop.
Girder example playbook with plugins
---
- name: Install Girder with qidw plugin
hosts: all
vars:
ansible_python_interpreter: auto
roles:
- role: girder.mongodb
vars:
mongodb_data_path: /var/lib/mongodb
- role: girder.girder
vars:
girder_bind_public: true
tasks:
- name: Install mongo-tools
apt:
name: mongodb-org-tools
become: true
- name: Copy qidw plugin
copy:
src: girder-qidw.tar.gz
dest: /tmp/girder-qidw.tar.gz
force: true
- name: Install Girder plugins
pip:
name:
- girder-client
- girder-autojoin
- girder-dicom-viewer
- girder-google-analytics
- girder-homepage
- girder-jobs
- girder-thumbnails
- girder-user-quota
- /tmp/girder-qidw.tar.gz
virtualenv: "{{ girder_virtualenv }}"
state: latest
notify:
- Build Girder web client
- Restart Girder
####### put the following lines in a sibling file requirements.yml
---
- src: girder.mongodb
version: master
- src: girder.girder
version: master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment