summaryrefslogtreecommitdiffstats
path: root/benchmarks
diff options
context:
space:
mode:
authorMofassirArif <Mofassir_Arif@dellteam.com>2016-01-28 04:29:29 -0800
committerMofassirArif <Mofassir_Arif@dellteam.com>2016-01-28 04:32:56 -0800
commit4c27a6b94a0664418664569384ce236159385c71 (patch)
tree7a516390c4139b019c5f50f4675b9487956a476d /benchmarks
parentf39702d879a291b2686062d22a9564c29d18acf8 (diff)
qtip: add condition for switching user to joid.
Change-Id: I9898a4eb21fb197a59fc72686d156eb4ef115388 Signed-off-by: MofassirArif <Mofassir_Arif@dellteam.com>
Diffstat (limited to 'benchmarks')
-rw-r--r--benchmarks/playbooks/dhrystone.yaml3
-rw-r--r--benchmarks/playbooks/dpi.yaml5
-rw-r--r--benchmarks/playbooks/fio.yaml3
-rw-r--r--benchmarks/playbooks/iperf.yaml2
-rw-r--r--benchmarks/playbooks/ramspeed.yaml3
-rw-r--r--benchmarks/playbooks/ssl.yaml8
-rw-r--r--benchmarks/playbooks/whetstone.yaml3
7 files changed, 16 insertions, 11 deletions
diff --git a/benchmarks/playbooks/dhrystone.yaml b/benchmarks/playbooks/dhrystone.yaml
index c3cfb333..3c1c7fb2 100644
--- a/benchmarks/playbooks/dhrystone.yaml
+++ b/benchmarks/playbooks/dhrystone.yaml
@@ -7,7 +7,8 @@
file: path={{workingdir}}/{{Dest_dir}}/dhrystone/dhrystone_temp state=directory
- hosts: "{{role}}"
-
+ become: yes
+ become_user: "{{username}}"
tasks:
- name: checking_home directory
shell: echo $HOME
diff --git a/benchmarks/playbooks/dpi.yaml b/benchmarks/playbooks/dpi.yaml
index 19ab30ce..e4b7a0fc 100644
--- a/benchmarks/playbooks/dpi.yaml
+++ b/benchmarks/playbooks/dpi.yaml
@@ -7,8 +7,11 @@
file: path={{workingdir}}/{{Dest_dir}}/dpi/dpi_temp state=directory
- hosts: "{{role}}"
+ become: yes
+ become_user: "{{username}}"
tasks:
-
+ - name: echo
+ shell: echo $USER
- name: checking_home directory
shell: echo $HOME
register: home_dir
diff --git a/benchmarks/playbooks/fio.yaml b/benchmarks/playbooks/fio.yaml
index 7162dc3b..4f8697c3 100644
--- a/benchmarks/playbooks/fio.yaml
+++ b/benchmarks/playbooks/fio.yaml
@@ -9,7 +9,8 @@
- hosts: "{{role}}"
tasks:
-
+ become: yes
+ become_user: "{{username}}"
- name: checking_home directory
shell: echo $HOME
register: home_dir
diff --git a/benchmarks/playbooks/iperf.yaml b/benchmarks/playbooks/iperf.yaml
index d6bc00ed..f139ff61 100644
--- a/benchmarks/playbooks/iperf.yaml
+++ b/benchmarks/playbooks/iperf.yaml
@@ -12,6 +12,8 @@
- hosts: "{{role}}"
+ become: yes
+ become_user: "{{username}}"
tasks:
- name: Rolename
set_fact:
diff --git a/benchmarks/playbooks/ramspeed.yaml b/benchmarks/playbooks/ramspeed.yaml
index 1d45f028..0810946a 100644
--- a/benchmarks/playbooks/ramspeed.yaml
+++ b/benchmarks/playbooks/ramspeed.yaml
@@ -9,7 +9,8 @@
- hosts: "{{role}}"
tasks:
-
+ become: yes
+ become_user: "{{username}}"
- name: checking_home directory
shell: echo $HOME
register: home_dir
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
diff --git a/benchmarks/playbooks/whetstone.yaml b/benchmarks/playbooks/whetstone.yaml
index 599b98f3..7f062264 100644
--- a/benchmarks/playbooks/whetstone.yaml
+++ b/benchmarks/playbooks/whetstone.yaml
@@ -9,7 +9,8 @@
- hosts: "{{role}}"
tasks:
-
+ become: yes
+ become_user: "{{username}}"
- name: storing_home
shell: echo $HOME
register: home_dir