summaryrefslogtreecommitdiff
path: root/roles/unix_users/defaults
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2017-04-12 18:11:07 +0300
committerLars Wirzenius <liw@liw.fi>2017-04-12 18:11:07 +0300
commit5df713fefd62a8ef392944a39f35c4324a73b910 (patch)
tree7509f6e2cc208ee59fdf7687dce0e2d813df40db /roles/unix_users/defaults
parent39e48621be51ac5a7173860c1985b40c74780279 (diff)
downloaddebian-ansible-5df713fefd62a8ef392944a39f35c4324a73b910.tar.gz
Add a role to create Unix system users
Including setting authorized_keys, and passwordless sudo access.
Diffstat (limited to 'roles/unix_users/defaults')
-rw-r--r--roles/unix_users/defaults/main.yml21
1 files changed, 21 insertions, 0 deletions
diff --git a/roles/unix_users/defaults/main.yml b/roles/unix_users/defaults/main.yml
new file mode 100644
index 0000000..d79958e
--- /dev/null
+++ b/roles/unix_users/defaults/main.yml
@@ -0,0 +1,21 @@
+# List of system users to create. Value a list of dicts with keys:
+#
+# username -- the username of the new user
+# comment -- the GECOS/realname of the new user
+# shell -- the shell to use (defaults to /bin/bash)
+# system -- yes/no, is user a system user (default no)
+# sudo -- yes/no, should user have sudo access? (without password)
+#
+
+unix_users: []
+
+
+# Specify directory where per-user authorized_keys files are stored.
+# Each user has their own file in the directory, named after their
+# username. You MUST specify this variable. You may put more than one
+# key in each user's file.
+#
+# You MUST create a file for each user in unix_users. An empty file
+# will do.
+
+authkeys_dir: /