Files
Cachy-workstation/roles/docker/tasks/main.yml
T
cjr f1dd4fb3c0 Fix variable deprecations and split site.yml into system and user plays
Replace deprecated ansible_user_dir/ansible_user_id with
ansible_facts['user_dir'/'user_id'] across all roles. Switch git repo
URLs from HTTPS to SSH. Split site.yml into two plays so user-facing
roles (dotfiles, scripts, hotkeys) run without become.
2026-06-20 11:45:05 -05:00

20 lines
349 B
YAML

---
- name: Install docker
community.general.pacman:
name:
- docker
state: present
- name: Enable docker service
ansible.builtin.service:
name: docker
state: started
enabled: true
- name: Add user to docker group
ansible.builtin.user:
user: "{{ ansible_facts['user_id'] }}"
groups: docker
append: true