Skip to content

Commit

Permalink
Added become statements
Browse files Browse the repository at this point in the history
  • Loading branch information
eslerm committed Sep 18, 2018
1 parent 26871a0 commit e011554
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
17 changes: 16 additions & 1 deletion tasks/static_setup.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
---
# Manage static Galaxy configuration files

- name: Create Galaxy config dirs
- name: Create Galaxy config and shed tools directory
file:
path: "{{ item }}"
state: directory
with_items:
- "{{ galaxy_config_dir }}"
- "{{ galaxy_shed_tools_dir }}"
become: yes

- name: Install additional Galaxy config files (static)
copy:
Expand All @@ -30,3 +31,17 @@
backup: yes
notify:
- restart galaxy
become: yes

- name: Set Galaxy config and shed tools directory ownership and permissions
file:
path: "{{ item }}"
owner: "{{ galaxy_user }}"
group: "{{ galaxy_group }}"
mode: "{{ galaxy_mode }}"
recurse: yes
with_items:
- "{{ galaxy_config_dir }}"
- "{{ galaxy_shed_tools_dir }}"
become: yes

2 changes: 2 additions & 0 deletions tasks/virtualenv.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
virtualenv_command: "{{ pip_virtualenv_command | default('virtualenv') }}"
environment:
VIRTUAL_ENV: "{{ galaxy_venv_dir }}"
become: yes

- name: Ensure pip is the latest release
pip:
Expand All @@ -21,3 +22,4 @@
environment:
PYTHONPATH: null
VIRTUAL_ENV: "{{ galaxy_venv_dir }}"
become: yes

0 comments on commit e011554

Please sign in to comment.