Fix permissions

This commit is contained in:
Filipe Marcelino 2024-09-02 02:29:23 +01:00
parent 02d250c4a5
commit f0246711c3
2 changed files with 7 additions and 6 deletions

View File

@ -97,8 +97,14 @@
- docker_users | length > 0 - docker_users | length > 0
- docker_user not in ansible_facts.getent_group["docker"][2] - docker_user not in ansible_facts.getent_group["docker"][2]
loop_control: loop_control:
loop_var: docker_user loop_var: docker_user
with_items: "{{ docker_users }}" with_items: "{{ docker_users }}"
- include_tasks: docker-users.yml - include_tasks: docker-users.yml
when: at_least_one_user_to_modify is defined when: at_least_one_user_to_modify is defined
- name: Set `/var/run/docker.sock` right permissions
ansible.builtin.file:
path: /var/run/docker.sock
mode: "0666"
when: ansible_os_family == 'Debian'

View File

@ -64,8 +64,3 @@
filename: "{{ docker_apt_filename }}" filename: "{{ docker_apt_filename }}"
update_cache: true update_cache: true
when: docker_add_repo | bool when: docker_add_repo | bool
- name: Set `/var/run/docker.sock` right permissions
ansible.builtin.file:
path: /var/run/docker.sock
mode: '0666'