Skip to content

Commit

Permalink
another attempt to create virtualenv before installing and calling ep…
Browse files Browse the repository at this point in the history
…hemeris
  • Loading branch information
martindemko committed Dec 16, 2024
1 parent 8a86c52 commit 6a420bf
Showing 1 changed file with 16 additions and 11 deletions.
27 changes: 16 additions & 11 deletions galaxy_tools.yml
Original file line number Diff line number Diff line change
@@ -1,34 +1,39 @@
---
- hosts: galaxyservers
tasks:
# - name: Ensure virtualenv is present
# local_action:
# module: ansible.builtin.pip
# name: virtualenv
- 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
# virtualenv: /tmp/ephemeris
virtualenv: /tmp/ephemeris
# virtualenv_python: python3

- name: Copy tools from master instance
local_action:
module: ansible.builtin.shell
# cmd: /tmp/ephemeris/bin/get-tool-list -g {{ copy_tools_from }} -o /tmp/master_tool_list.yaml
cmd: get-tool-list -g {{ copy_tools_from }} -o /tmp/master_tool_list.yaml
cmd: /tmp/ephemeris/bin/get-tool-list -g {{ copy_tools_from }} -o /tmp/master_tool_list.yaml
# cmd: get-tool-list -g {{ 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
cmd: shed-tools install -g https://{{ inventory_hostname }} -a {{ api_key }} -t /tmp/master_tool_list.yaml
cmd: /tmp/ephemeris/bin/shed-tools install -g https://{{ inventory_hostname }} -a {{ api_key }} -t /tmp/master_tool_list.yaml
# cmd: shed-tools install -g https://{{ inventory_hostname }} -a {{ api_key }} -t /tmp/master_tool_list.yaml
when: copy_tools_from

- name: Install local 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
cmd: shed-tools install -g https://{{ inventory_hostname }} -a {{ api_key }} -t files/{{ inventory_hostname }}/tool_list.yaml
cmd: /tmp/ephemeris/bin/shed-tools install -g https://{{ inventory_hostname }} -a {{ api_key }} -t files/{{ inventory_hostname }}/tool_list.yaml
# cmd: shed-tools install -g https://{{ inventory_hostname }} -a {{ api_key }} -t files/{{ inventory_hostname }}/tool_list.yaml

0 comments on commit 6a420bf

Please sign in to comment.