ansible-desktop/roles/docker/tasks/install-arch.yml

22 lines
388 B
YAML
Raw Normal View History

2023-08-26 21:57:26 +00:00
- name: install docker
become: yes
community.general.pacman:
update_cache: yes
name:
- docker
- docker-compose
2023-08-30 22:44:36 +00:00
- name: "Enable service"
become: yes
ansible.builtin.systemd:
name: docker
state: started
enabled: yes
- name: add current user to docker group
become: yes
user:
name: "{{ ansible_user_id }}"
append: yes
groups: docker