mirror of
https://github.com/RWejlgaard/pez-infra.git
synced 2026-05-06 04:14:43 +00:00
add alloy to docker group (#86)
This commit is contained in:
parent
6a3618aa4a
commit
a51a0879d3
1 changed files with 10 additions and 0 deletions
|
|
@ -38,6 +38,16 @@
|
||||||
- /var/db/alloy
|
- /var/db/alloy
|
||||||
when: ansible_facts["os_family"] == "FreeBSD"
|
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 ───────────────────────────────────────────────────────────
|
# ── Config — all OS ───────────────────────────────────────────────────────────
|
||||||
|
|
||||||
- name: Set alloy config path fact
|
- name: Set alloy config path fact
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue