Add zuul user to docker group

We are going to use containerized Openstack client
in test scripts. Adding zuul to the docker group
allows running docker command directly not using sudo.

Change-Id: Iee77e7f2b8801743f95535d31d0b909dcea50bf3
This commit is contained in:
Vladimir Kozhukalov 2024-01-16 13:14:43 -06:00
parent d0b3f1c1d2
commit 2b7563f5de
2 changed files with 6 additions and 0 deletions

View File

@ -26,6 +26,8 @@ kubeadm:
service_cidr: "10.96.0.0/16"
docker:
root_path: /var/lib/docker
docker_users:
- zuul
containerd:
root_path: /var/lib/containerd
loopback_setup: false

View File

@ -70,6 +70,10 @@
src: files/daemon.json
dest: /etc/docker/daemon.json
- name: Add users to docker group
command: "adduser {{ item }} docker"
loop: "{{ docker_users }}"
- name: Restart docker
service:
name: docker