-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathgalaxy_tools.yml
37 lines (32 loc) · 1.24 KB
/
galaxy_tools.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
---
- hosts: galaxyservers
tasks:
- name: Ensure virtualenv is present
local_action:
module: ansible.builtin.pip
name: virtualenv
- name: Create a Python virtual environment for Ephemeris
local_action:
module: ansible.builtin.command
cmd: python3 -m venv /tmp/ephemeris
- name: Install Ephemeris
local_action:
module: ansible.builtin.pip
name:
- ephemeris
- setuptools
virtualenv: /tmp/ephemeris
- name: Copy tools from master instance
local_action:
module: ansible.builtin.shell
cmd: /tmp/ephemeris/bin/get-tool-list -g https://{{ copy_tools_from }} -o /tmp/master_tool_list.yaml
when: copy_tools_from
- name: Install tools from master instance
local_action:
module: ansible.builtin.shell
cmd: /tmp/ephemeris/bin/shed-tools install -g https://{{ inventory_hostname }} -a {{ api_key }} -t /tmp/master_tool_list.yaml
when: copy_tools_from
- name: Install instance specific tools
local_action:
module: ansible.builtin.shell
cmd: /tmp/ephemeris/bin/shed-tools install -g https://{{ inventory_hostname }} -a {{ api_key }} -t files/{{ inventory_hostname }}/tool_list.yaml