Created
April 12, 2016 18:35
-
-
Save dpwrussell/fda98e269780653a17bcc9202e151244 to your computer and use it in GitHub Desktop.
OMERO figure script ansible test playbool
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| --- | |
| - hosts: itlomerod01 | |
| remote_user: root | |
| tasks: | |
| # get the id of an installed script | |
| - name: check if figure script has been installed (database) | |
| shell: "{{ omero_base }}/OMERO.server/current/bin/omero script list | grep 'Figure_To_Pdf' | gawk -F '|' '{ print $1 }'" | |
| sudo: yes | |
| sudo_user: omero-local | |
| register: figure_script_id | |
| - debug: var=figure_script_id | |
| # Install the figure script (only the first time) | |
| - name: load plugin scripts (first time) | |
| shell: "{{ omero_base }}/OMERO.server/current/bin/omero script -u root -w { omero_password } -s localhost upload omero/figure_scripts/Figure_To_Pdf.py --official" | |
| sudo: yes | |
| sudo_user: omero-local | |
| args: | |
| chdir: "{{ omero_base }}/OMERO.web/current/lib/python/omeroweb/figure/scripts/" | |
| when: figure_script_id.stdout == "" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment