You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+15-1Lines changed: 15 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,6 +9,7 @@ With this role you can:
9
9
* Create system administrator users
10
10
* Remove system administrator users
11
11
* Add `sudo` permissions to system administrator users
12
+
* Add multiple ssh keys to a single system administrator user
12
13
13
14
This role need be runned with `sudo` access.
14
15
@@ -41,11 +42,24 @@ System Administrators vars:
41
42
42
43
### `sys_admin_group`
43
44
44
-
The name of the system adnimistrators group
45
+
The name of the system administrators group
45
46
46
47
```yaml
47
48
sys_admin_group: sysadmin-group
48
49
```
50
+
51
+
## Single user mode
52
+
When you are restricted to a single user, you must set the `sysadmin_multi_user` variable to `false` and set the `sysadmin_user` variable with the user name. The user must be already created on the server with root privileges.
53
+
54
+
This will iterate over the `sys_admins` list and add each user key to the authorized keys for the user defined in `sysadmin_user` variable.
0 commit comments