diff options
author | Yujun Zhang <zhang.yujunz@zte.com.cn> | 2016-11-17 15:51:37 +0800 |
---|---|---|
committer | Yujun Zhang <zhang.yujunz@zte.com.cn> | 2016-11-17 15:51:37 +0800 |
commit | a788e641fea98422d358a07f0efd8ba232c80317 (patch) | |
tree | 6412e8c7f5e59eb8739db4299af1ceac39363cd4 | |
parent | caa171ac3796bbeacfdac0939713eedfad85e3c3 (diff) |
Additional server test.qtip.io
- Located in Aliyun HK
- 1 CPU, 1GiB Mem, 100Mbps
Change-Id: I93241648f5721c04305cd74e1668de8ce5317604
Signed-off-by: Yujun Zhang <zhang.yujunz@zte.com.cn>
-rw-r--r-- | opt/servers/inventory | 3 | ||||
-rw-r--r-- | opt/servers/roles/ssh/tasks/main.yml | 5 | ||||
-rw-r--r-- | opt/servers/ssh.yml | 2 |
3 files changed, 7 insertions, 3 deletions
diff --git a/opt/servers/inventory b/opt/servers/inventory index b5d66985..52ae28f4 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 |