mirror of
https://github.com/RWejlgaard/pez-infra.git
synced 2026-05-06 04:14:43 +00:00
add alloy to docker group
This commit is contained in:
parent
6a3618aa4a
commit
d9c71c00f5
1 changed files with 10 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue