summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorzhihui wu <wu.zhihui1@zte.com.cn>2016-11-23 03:19:29 +0000
committerGerrit Code Review <gerrit@opnfv.org>2016-11-23 03:19:29 +0000
commit07ee28b71118469f3946a009a126b7c21267173e (patch)
treee89e326e5b5459843f63a9d3696a9578d71b32d4
parent306b614325c2806997dedca958e4cadf909a351b (diff)
parenta788e641fea98422d358a07f0efd8ba232c80317 (diff)
Merge "Additional server test.qtip.io"
-rw-r--r--opt/servers/inventory3
-rw-r--r--opt/servers/roles/ssh/tasks/main.yml5
-rw-r--r--opt/servers/ssh.yml2
3 files changed, 7 insertions, 3 deletions
diff --git a/opt/servers/inventory b/opt/servers/inventory
index f038d877..65c6c35d 100644
--- a/opt/servers/inventory
+++ b/opt/servers/inventory
@@ -1,4 +1,5 @@
-qtip-dev ansible_host=dev.qtip.io
+qtip-dev ansible_host=dev.qtip.io
+qtip-test ansible_host=test.qtip.io
[elk-servers]
qtip-dev
diff --git a/opt/servers/roles/ssh/tasks/main.yml b/opt/servers/roles/ssh/tasks/main.yml
index 7de1e208..48318485 100644
--- a/opt/servers/roles/ssh/tasks/main.yml
+++ b/opt/servers/roles/ssh/tasks/main.yml
@@ -1,3 +1,6 @@
+- name: add group qtip
+ become: true
+ group: name=qtip state=present
- name: add users for ssh access
become: true
user:
@@ -23,4 +26,4 @@
owner: "{{ item.name }}"
group: "{{ item.name }}"
mode: 0600
- with_items: "{{ users }}" \ No newline at end of file
+ with_items: "{{ users }}"
diff --git a/opt/servers/ssh.yml b/opt/servers/ssh.yml
index bd74ab3b..a7fbb1c0 100644
--- a/opt/servers/ssh.yml
+++ b/opt/servers/ssh.yml
@@ -1,4 +1,4 @@
---
-- hosts: elk-servers
+- hosts: all
roles:
- ssh