-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
another attempt to create virtualenv before installing and calling ep…
…hemeris
- Loading branch information
1 parent
8a86c52
commit 6a420bf
Showing
1 changed file
with
16 additions
and
11 deletions.
There are no files selected for viewing
This file contains 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
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 |