From e6466f7ba729812bc92b72a823f4add25f9ba852 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Cio=C5=82ecki?= Date: Thu, 19 Apr 2018 19:25:01 +0200 Subject: [PATCH] Change export and source priority --- tasks/configure.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/tasks/configure.yml b/tasks/configure.yml index 24a9113..30c9f84 100644 --- a/tasks/configure.yml +++ b/tasks/configure.yml @@ -5,8 +5,8 @@ action: module: lineinfile dest: "{{ virtualenvwrapper_shell_file }}" - regexp: "export WORKON_HOME" line: "export WORKON_HOME={{ virtualenvwrapper_home }}" + insertbefore: "BOF" state: present backup: yes create: yes @@ -19,8 +19,8 @@ action: module: lineinfile dest: "{{ virtualenvwrapper_shell_file }}" - regexp: "export PROJECT_HOME" line: "export PROJECT_HOME={{ virtualenvwrapper_project }}" + insertafter: "export WORKON_HOME={{ virtualenvwrapper_home }}" state: present backup: yes create: yes @@ -33,8 +33,8 @@ action: module: lineinfile dest: "{{ virtualenvwrapper_shell_file }}" - regexp: "export VIRTUALENVWRAPPER_PYTHON" line: "export VIRTUALENVWRAPPER_PYTHON={{ virtualenvwrapper_python }}" + insertafter: "export PROJECT_HOME={{ virtualenvwrapper_project }}" state: present backup: yes create: yes @@ -47,8 +47,8 @@ action: module: lineinfile dest: "{{ virtualenvwrapper_shell_file }}" - regexp: "export VIRTUALENVWRAPPER_VIRTUALENV" line: "export VIRTUALENVWRAPPER_VIRTUALENV={{ virtualenvwrapper_virtualenv }}" + insertafter: "export VIRTUALENVWRAPPER_PYTHON={{ virtualenvwrapper_python }}" state: present backup: yes create: yes @@ -61,11 +61,11 @@ action: module: lineinfile dest: "{{ virtualenvwrapper_shell_file }}" - regexp: "source {{ virtualenvwrapper_source }}" line: "source {{ virtualenvwrapper_source }}" + insertafter: "export VIRTUALENVWRAPPER_VIRTUALENV={{ virtualenvwrapper_virtualenv }}" state: present backup: yes create: yes tags: - virtualenvwrapper - - virtualenvwrapper.configuration + - virtualenvwrapper.configurationa