From a788e641fea98422d358a07f0efd8ba232c80317 Mon Sep 17 00:00:00 2001 From: Yujun Zhang Date: Thu, 17 Nov 2016 15:51:37 +0800 Subject: Additional server test.qtip.io - Located in Aliyun HK - 1 CPU, 1GiB Mem, 100Mbps Change-Id: I93241648f5721c04305cd74e1668de8ce5317604 Signed-off-by: Yujun Zhang --- opt/servers/inventory | 3 ++- opt/servers/roles/ssh/tasks/main.yml | 5 ++++- opt/servers/ssh.yml | 2 +- 3 files changed, 7 insertions(+), 3 deletions(-) (limited to 'opt/servers') 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 -- cgit 1.2.3-korg