add alloy to docker group (#86)
Some checks are pending
Deploy (on merge) / Discover hosts (push) Waiting to run
Deploy (on merge) / Deploy → (push) Blocked by required conditions

This commit is contained in:
Rasmus Wejlgaard 2026-04-28 20:53:19 +01:00 committed by GitHub
parent 6a3618aa4a
commit a51a0879d3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -38,6 +38,16 @@
- /var/db/alloy
when: ansible_facts["os_family"] == "FreeBSD"
# ── Docker socket access ─────────────────────────────────────────────────────
- name: Add alloy to docker group
ansible.builtin.user:
name: alloy
groups: docker
append: true
when: "'docker_hosts' in group_names"
notify: "Restart alloy ({{ ansible_facts['os_family'] }})"
# ── Config — all OS ───────────────────────────────────────────────────────────
- name: Set alloy config path fact