summaryrefslogtreecommitdiffstats
path: root/opt/servers/roles
diff options
context:
space:
mode:
authorYujun Zhang <zhang.yujunz@zte.com.cn>2016-11-25 06:17:37 +0000
committerGerrit Code Review <gerrit@opnfv.org>2016-11-25 06:17:37 +0000
commit099238a0ea8f80b0765965ec306bf281c0c9dc55 (patch)
tree6712e29da5e9ebaeb9429b3b2c4edc42afd7cf57 /opt/servers/roles
parentd9d0c43812260578aca135464a2932c7c01b0158 (diff)
parentd1e4062604fdf9ff97959e396f6be4aac2c33478 (diff)
Merge "Reorganize the inventory"
Diffstat (limited to 'opt/servers/roles')
-rw-r--r--opt/servers/roles/user/defaults/main.yml (renamed from opt/servers/roles/ssh/defaults/main.yml)0
-rw-r--r--opt/servers/roles/user/files/serena.authorized_keys (renamed from opt/servers/roles/ssh/files/serena.authorized_keys)0
-rw-r--r--opt/servers/roles/user/files/sudoers.d-qtip2
-rw-r--r--opt/servers/roles/user/files/taseer.authorized_keys (renamed from opt/servers/roles/ssh/files/taseer.authorized_keys)0
-rw-r--r--opt/servers/roles/user/files/yujunz.authorized_keys (renamed from opt/servers/roles/ssh/files/yujunz.authorized_keys)0
-rw-r--r--opt/servers/roles/user/files/zhifeng.authorized_keys (renamed from opt/servers/roles/ssh/files/zhifeng.authorized_keys)0
-rw-r--r--opt/servers/roles/user/tasks/main.yml (renamed from opt/servers/roles/ssh/tasks/main.yml)6
7 files changed, 8 insertions, 0 deletions
diff --git a/opt/servers/roles/ssh/defaults/main.yml b/opt/servers/roles/user/defaults/main.yml
index 41ee9853..41ee9853 100644
--- a/opt/servers/roles/ssh/defaults/main.yml
+++ b/opt/servers/roles/user/defaults/main.yml
diff --git a/opt/servers/roles/ssh/files/serena.authorized_keys b/opt/servers/roles/user/files/serena.authorized_keys
index 5cdbfe00..5cdbfe00 100644
--- a/opt/servers/roles/ssh/files/serena.authorized_keys
+++ b/opt/servers/roles/user/files/serena.authorized_keys
diff --git a/opt/servers/roles/user/files/sudoers.d-qtip b/opt/servers/roles/user/files/sudoers.d-qtip
new file mode 100644
index 00000000..e96d278a
--- /dev/null
+++ b/opt/servers/roles/user/files/sudoers.d-qtip
@@ -0,0 +1,2 @@
+# Group rules for qtip-contributors
+%qtip ALL=(ALL) NOPASSWD:ALL
diff --git a/opt/servers/roles/ssh/files/taseer.authorized_keys b/opt/servers/roles/user/files/taseer.authorized_keys
index 2efb95e8..2efb95e8 100644
--- a/opt/servers/roles/ssh/files/taseer.authorized_keys
+++ b/opt/servers/roles/user/files/taseer.authorized_keys
diff --git a/opt/servers/roles/ssh/files/yujunz.authorized_keys b/opt/servers/roles/user/files/yujunz.authorized_keys
index 83ed540d..83ed540d 100644
--- a/opt/servers/roles/ssh/files/yujunz.authorized_keys
+++ b/opt/servers/roles/user/files/yujunz.authorized_keys
diff --git a/opt/servers/roles/ssh/files/zhifeng.authorized_keys b/opt/servers/roles/user/files/zhifeng.authorized_keys
index 195cfdca..195cfdca 100644
--- a/opt/servers/roles/ssh/files/zhifeng.authorized_keys
+++ b/opt/servers/roles/user/files/zhifeng.authorized_keys
diff --git a/opt/servers/roles/ssh/tasks/main.yml b/opt/servers/roles/user/tasks/main.yml
index 48318485..b1b5be9b 100644
--- a/opt/servers/roles/ssh/tasks/main.yml
+++ b/opt/servers/roles/user/tasks/main.yml
@@ -1,6 +1,12 @@
- name: add group qtip
become: true
group: name=qtip state=present
+- name: add qtip to sudoers without password
+ become: true
+ file:
+ src: sudoers.d-qtip
+ dest: /etc/sudoers.d/50-qtip
+ mode: 0440
- name: add users for ssh access
become: true
user: