-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[update] Add compatiblity Ansible 2.x + virtualen option installation
- Loading branch information
Łukasz Ciołecki
committed
Jan 26, 2017
1 parent
9388b5e
commit efb4ca9
Showing
4 changed files
with
75 additions
and
55 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
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
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,66 +1,71 @@ | ||
--- | ||
|
||
- name: Set workon home path | ||
sudo: yes | ||
lineinfile: > | ||
dest="{{ virtualenvwrapper_shell_file }}" | ||
regexp="export WORKON_HOME" | ||
line="export WORKON_HOME={{ virtualenvwrapper_home }}" | ||
state=present | ||
backup=yes | ||
create=yes | ||
become: yes | ||
action: | ||
module: lineinfile | ||
dest: "{{ virtualenvwrapper_shell_file }}" | ||
regexp: "export WORKON_HOME" | ||
line: "export WORKON_HOME={{ virtualenvwrapper_home }}" | ||
state: present | ||
backup: yes | ||
create: yes | ||
tags: | ||
- virtualenvwrapper | ||
- virtualenvwrapper_configuration | ||
- virtualenvwrapper.configuration | ||
|
||
- name: Set project path | ||
sudo: yes | ||
lineinfile: > | ||
dest="{{ virtualenvwrapper_shell_file }}" | ||
regexp="export PROJECT_HOME" | ||
line="export PROJECT_HOME={{ virtualenvwrapper_project }}" | ||
state=present | ||
backup=yes | ||
create=yes | ||
become: yes | ||
action: | ||
module: lineinfile | ||
dest: "{{ virtualenvwrapper_shell_file }}" | ||
regexp: "export PROJECT_HOME" | ||
line: "export PROJECT_HOME={{ virtualenvwrapper_project }}" | ||
state: present | ||
backup: yes | ||
create: yes | ||
tags: | ||
- virtualenvwrapper | ||
- virtualenvwrapper_configuration | ||
- virtualenvwrapper.configuration | ||
|
||
- name: Set virtualenvwrapper python path | ||
sudo: yes | ||
lineinfile: > | ||
dest="{{ virtualenvwrapper_shell_file }}" | ||
regexp="export VIRTUALENVWRAPPER_PYTHON" | ||
line="export VIRTUALENVWRAPPER_PYTHON={{ virtualenvwrapper_python }}" | ||
state=present | ||
backup=yes | ||
create=yes | ||
become: yes | ||
action: | ||
module: lineinfile | ||
dest: "{{ virtualenvwrapper_shell_file }}" | ||
regexp: "export VIRTUALENVWRAPPER_PYTHON" | ||
line: "export VIRTUALENVWRAPPER_PYTHON={{ virtualenvwrapper_python }}" | ||
state: present | ||
backup: yes | ||
create: yes | ||
tags: | ||
- virtualenvwrapper | ||
- virtualenvwrapper_configuration | ||
- virtualenvwrapper.configuration | ||
|
||
- name: Set virtualenvwrapper path | ||
sudo: yes | ||
lineinfile: > | ||
dest="{{ virtualenvwrapper_shell_file }}" | ||
regexp="export VIRTUALENVWRAPPER_VIRTUALENV" | ||
line="export VIRTUALENVWRAPPER_VIRTUALENV={{ virtualenvwrapper_virtualenv }}" | ||
state=present | ||
backup=yes | ||
create=yes | ||
become: yes | ||
action: | ||
module: lineinfile | ||
dest: "{{ virtualenvwrapper_shell_file }}" | ||
regexp: "export VIRTUALENVWRAPPER_VIRTUALENV" | ||
line: "export VIRTUALENVWRAPPER_VIRTUALENV={{ virtualenvwrapper_virtualenv }}" | ||
state: present | ||
backup: yes | ||
create: yes | ||
tags: | ||
- virtualenvwrapper | ||
- virtualenvwrapper_configuration | ||
- virtualenvwrapper.configuration | ||
|
||
- name: Load virtualenvwrapper.sh | ||
sudo: yes | ||
lineinfile: > | ||
dest="{{ virtualenvwrapper_shell_file }}" | ||
regexp="source {{ virtualenvwrapper_source }}" | ||
line="source {{ virtualenvwrapper_source }}" | ||
state=present | ||
backup=yes | ||
create=yes | ||
become: yes | ||
action: | ||
module: lineinfile | ||
dest: "{{ virtualenvwrapper_shell_file }}" | ||
regexp: "source {{ virtualenvwrapper_source }}" | ||
line: "source {{ virtualenvwrapper_source }}" | ||
state: present | ||
backup: yes | ||
create: yes | ||
tags: | ||
- virtualenvwrapper | ||
- virtualenvwrapper_configuration | ||
- virtualenvwrapper.configuration |
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,11 +1,24 @@ | ||
--- | ||
|
||
- name: Install virtualenv | ||
become: yes | ||
action: | ||
module: pip | ||
name: virtualenv | ||
version: "{{ virtualenv_version }}" | ||
state: present | ||
when: virtualenv_version | default(None) != None | ||
tags: | ||
- virtualenvwrapper | ||
- virtualenvwrapper.install | ||
|
||
- name: Install virtualenvwrapper | ||
sudo: yes | ||
pip: > | ||
name=virtualenvwrapper | ||
version={{ virtualenvwrapper_version }} | ||
state=present | ||
become: yes | ||
action: | ||
module: pip | ||
name: virtualenvwrapper | ||
version: "{{ virtualenvwrapper_version }}" | ||
state: present | ||
tags: | ||
- virtualenvwrapper | ||
- virtualenvwrapper_installation | ||
- virtualenvwrapper.install |