aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYujun Zhang <zhang.yujunz@zte.com.cn>2017-04-27 10:57:40 +0800
committerYujun Zhang <zhang.yujunz@zte.com.cn>2017-04-27 10:57:40 +0800
commit27e86710e8d6080cda9e0121a0ff38275785cb7f (patch)
treed7636ed3b80cb128ebfea684496f145a686fe0f2
parent7a03b70c783828c7c17b4019c2cda295d31cf43f (diff)
Allow executing benchmark under non-root user
Change-Id: I62b242c9a2e90cc6c0c6c5ca181356690e18b59b Signed-off-by: Yujun Zhang <zhang.yujunz@zte.com.cn>
-rw-r--r--resources/ansible_roles/inxi/tasks/main.yml1
-rw-r--r--resources/ansible_roles/openssl/tasks/main.yml1
-rw-r--r--resources/ansible_roles/qtip/tasks/install-deps-debian.yml6
-rw-r--r--resources/ansible_roles/qtip/tasks/install-deps-redhat.yml4
-rw-r--r--resources/ansible_roles/qtip/tasks/install-deps.yml8
5 files changed, 12 insertions, 8 deletions
diff --git a/resources/ansible_roles/inxi/tasks/main.yml b/resources/ansible_roles/inxi/tasks/main.yml
index d9dbf7ad..f6216df4 100644
--- a/resources/ansible_roles/inxi/tasks/main.yml
+++ b/resources/ansible_roles/inxi/tasks/main.yml
@@ -8,6 +8,7 @@
##############################################################################
- name: install inxi - Command line system information script for console and IRC
+ become: yes
package:
name: inxi
state: present
diff --git a/resources/ansible_roles/openssl/tasks/main.yml b/resources/ansible_roles/openssl/tasks/main.yml
index 0d57ef2d..fe5201d2 100644
--- a/resources/ansible_roles/openssl/tasks/main.yml
+++ b/resources/ansible_roles/openssl/tasks/main.yml
@@ -8,6 +8,7 @@
##############################################################################
- name: install openssl - Cryptography and SSL/TLS Toolkit
+ become: yes
package:
name: openssl
state: present
diff --git a/resources/ansible_roles/qtip/tasks/install-deps-debian.yml b/resources/ansible_roles/qtip/tasks/install-deps-debian.yml
index 3142bcc6..7e3742bb 100644
--- a/resources/ansible_roles/qtip/tasks/install-deps-debian.yml
+++ b/resources/ansible_roles/qtip/tasks/install-deps-debian.yml
@@ -9,6 +9,7 @@
---
- name: installing software properties common
+ become: true
apt:
name: "{{ item }}"
state: present
@@ -16,6 +17,7 @@
- software-properties-common
- name: adding ubuntu backport main repo
+ become: true
apt_repository:
repo: "{{ item }}"
state: present
@@ -24,6 +26,7 @@
- deb http://archive.ubuntu.com/ubuntu/ {{ansible_distribution_release}} main restricted universe multiverse
- name: installing dependencies
+ become: true
apt:
name: "{{ item }}"
state: present
@@ -34,3 +37,6 @@
- libtool-bin
- autoconf
- automake
+ - rsync
+ - git
+
diff --git a/resources/ansible_roles/qtip/tasks/install-deps-redhat.yml b/resources/ansible_roles/qtip/tasks/install-deps-redhat.yml
index 82232273..0939aa4b 100644
--- a/resources/ansible_roles/qtip/tasks/install-deps-redhat.yml
+++ b/resources/ansible_roles/qtip/tasks/install-deps-redhat.yml
@@ -9,11 +9,13 @@
---
- name: installing epel release
+ become: true
yum:
name: epel-release
state: present
- name: installing dependencies
+ become: true
yum:
name: "{{ item }}"
state: present
@@ -22,3 +24,5 @@
- gcc-c++
- libselinux-python
- libpcap-devel
+ - rsync
+ - git
diff --git a/resources/ansible_roles/qtip/tasks/install-deps.yml b/resources/ansible_roles/qtip/tasks/install-deps.yml
index f48c5191..e9590f4b 100644
--- a/resources/ansible_roles/qtip/tasks/install-deps.yml
+++ b/resources/ansible_roles/qtip/tasks/install-deps.yml
@@ -9,11 +9,3 @@
---
- include: "install-deps-{{ ansible_os_family|lower }}.yml"
-
-- name: installing dependencies
- package:
- name: "{{ item }}"
- state: present
- with_items:
- - rsync
- - git