Allow executing benchmark under non-root user 13/33913/1
authorYujun Zhang <zhang.yujunz@zte.com.cn>
Thu, 27 Apr 2017 02:57:40 +0000 (10:57 +0800)
committerYujun Zhang <zhang.yujunz@zte.com.cn>
Thu, 27 Apr 2017 02:57:40 +0000 (10:57 +0800)
Change-Id: I62b242c9a2e90cc6c0c6c5ca181356690e18b59b
Signed-off-by: Yujun Zhang <zhang.yujunz@zte.com.cn>
resources/ansible_roles/inxi/tasks/main.yml
resources/ansible_roles/openssl/tasks/main.yml
resources/ansible_roles/qtip/tasks/install-deps-debian.yml
resources/ansible_roles/qtip/tasks/install-deps-redhat.yml
resources/ansible_roles/qtip/tasks/install-deps.yml

index d9dbf7a..f6216df 100644 (file)
@@ -8,6 +8,7 @@
 ##############################################################################
 
 - name: install inxi - Command line system information script for console and IRC
+  become: yes
   package:
     name: inxi
     state: present
index 0d57ef2..fe5201d 100644 (file)
@@ -8,6 +8,7 @@
 ##############################################################################
 
 - name: install openssl - Cryptography and SSL/TLS Toolkit
+  become: yes
   package:
     name: openssl
     state: present
index 3142bcc..7e3742b 100644 (file)
@@ -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
+
index 8223227..0939aa4 100644 (file)
@@ -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
index f48c519..e9590f4 100644 (file)
@@ -9,11 +9,3 @@
 
 ---
 - include: "install-deps-{{ ansible_os_family|lower }}.yml"
-
-- name: installing dependencies
-  package:
-    name: "{{ item }}"
-    state: present
-  with_items:
-    - rsync
-    - git