aboutsummaryrefslogtreecommitdiffstats
path: root/opt/servers
diff options
context:
space:
mode:
Diffstat (limited to 'opt/servers')
-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 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