diff options
author | Yujun Zhang <zhang.yujunz@zte.com.cn> | 2016-11-23 16:02:35 +0800 |
---|---|---|
committer | Yujun Zhang <zhang.yujunz@zte.com.cn> | 2016-11-23 16:34:17 +0800 |
commit | d1e4062604fdf9ff97959e396f6be4aac2c33478 (patch) | |
tree | e6075ed1414551b3d93f1c43a96d9bf7f6101aed /opt/servers/roles | |
parent | 07ee28b71118469f3946a009a126b7c21267173e (diff) |
Reorganize the inventory
- update server name and spec
- group servers by usage
- assign roles for each group
- rename role ssh to user
Change-Id: Ibc0a599adfabee296510f140319889775d9ae6cc
Signed-off-by: Yujun Zhang <zhang.yujunz@zte.com.cn>
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-qtip | 2 | ||||
-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: |