refactor: reorganize proxmox roles, add hardware acceleration, and update common config tasks
Signed-off-by: Tuan-Dat Tran <tuan-dat.tran@tudattr.dev>
This commit is contained in:
14
roles/docker_host/tasks/30_user_group_setup.yml
Normal file
14
roles/docker_host/tasks/30_user_group_setup.yml
Normal file
@@ -0,0 +1,14 @@
|
||||
---
|
||||
- name: Ensure group "docker" exists
|
||||
ansible.builtin.group:
|
||||
name: docker
|
||||
state: present
|
||||
become: true
|
||||
|
||||
- name: Append the group docker to "{{ ansible_user_id }}"
|
||||
ansible.builtin.user:
|
||||
name: "{{ ansible_user_id }}"
|
||||
shell: /bin/bash
|
||||
groups: docker
|
||||
append: true
|
||||
become: true
|
||||
Reference in New Issue
Block a user