diff options
author | MofassirArif <Mofassir_Arif@dellteam.com> | 2016-01-28 04:29:29 -0800 |
---|---|---|
committer | Nauman Ahad <nauman.ahad@xflowresearch.com> | 2016-02-01 22:35:33 +0000 |
commit | f2b895c2b5df03a6b726f58eac456dad9cf54e34 (patch) | |
tree | 7a516390c4139b019c5f50f4675b9487956a476d /benchmarks/playbooks/ssl.yaml | |
parent | 70326a8fd57f115f6d0889cfddada7c6945a691b (diff) |
qtip: add condition for switching user to joid.
Change-Id: I9898a4eb21fb197a59fc72686d156eb4ef115388
Signed-off-by: MofassirArif <Mofassir_Arif@dellteam.com>
(cherry picked from commit 4c27a6b94a0664418664569384ce236159385c71)
Diffstat (limited to 'benchmarks/playbooks/ssl.yaml')
-rw-r--r-- | benchmarks/playbooks/ssl.yaml | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/benchmarks/playbooks/ssl.yaml b/benchmarks/playbooks/ssl.yaml index 9416bb38..9ba16455 100644 --- a/benchmarks/playbooks/ssl.yaml +++ b/benchmarks/playbooks/ssl.yaml @@ -1,16 +1,14 @@ - hosts: 127.0.0.1 connection: local - remote_user: '{{ ansible_env.USER }}' - sudo: no tasks: - name: making ssl directory file: path={{workingdir}}/{{Dest_dir}}/ssl state=directory - name: making temporary ssl directory file: path={{workingdir}}/{{Dest_dir}}/ssl/ssl_temp state=directory - hosts: "{{role}}" - remote_user: root + become: yes + become_user: "{{username}}" tasks: - - name: checking_home directory shell: echo $HOME register: home_dir @@ -73,8 +71,6 @@ - hosts: 127.0.0.1 connection: local - remote_user: '{{ ansible_env.USER }}' - sudo: no tasks: - name: echo shell: echo $PWD |