]> git.phdru.name Git - ansible.git/blobdiff - playbooks/roles/debian/phd/tasks/create.yml
Feat: Move roles/debian-* -> roles/debian/*
[ansible.git] / playbooks / roles / debian / phd / tasks / create.yml
diff --git a/playbooks/roles/debian/phd/tasks/create.yml b/playbooks/roles/debian/phd/tasks/create.yml
new file mode 100644 (file)
index 0000000..dbd4209
--- /dev/null
@@ -0,0 +1,18 @@
+- name: Create system groups
+  become: true
+  group:
+    name: "{{ item }}"
+    system: true
+  loop: "{{ system_groups.split(',') }}"
+
+- name: Create group phd
+  become: true
+  group:
+    name: phd
+
+- name: Add user phd
+  become: true
+  user:
+    name: phd
+    group: phd
+    groups: "{{ system_groups }}"