aboutsummaryrefslogtreecommitdiff
path: root/roles/host/tasks/user.yml
diff options
context:
space:
mode:
Diffstat (limited to 'roles/host/tasks/user.yml')
-rw-r--r--roles/host/tasks/user.yml9
1 files changed, 9 insertions, 0 deletions
diff --git a/roles/host/tasks/user.yml b/roles/host/tasks/user.yml
new file mode 100644
index 0000000..40e9f4c
--- /dev/null
+++ b/roles/host/tasks/user.yml
@@ -0,0 +1,9 @@
+- name: Create containers user
+ ansible.builtin.user:
+ name: "{{ host_containers_user }}"
+
+- name: Add containers user to systemd-journal group
+ ansible.builtin.user:
+ name: "{{ host_containers_user }}"
+ groups: "systemd-journal"
+ append: true