summaryrefslogtreecommitdiffstats
path: root/benchmarks
diff options
context:
space:
mode:
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