dotfiles/roles/docker/tasks/main.yaml
Oliver Davies 8916e90050 refactor: combine with Ubuntu Provisioning repo
Combine with this repository with https://github.com/opdavies/ubuntu-provisioning
so that everything can be managed in one place, and add a role for each
piece of software.
2022-01-06 01:04:14 +00:00

23 lines
378 B
YAML

---
- name: Install
ansible.builtin.package:
name:
- docker
- docker-compose
state: latest
become: yes
- name: Enable service
ansible.builtin.systemd:
enabled: yes
name: docker
state: started
become: yes
- name: Add to group
ansible.builtin.user:
append: yes
groups: docker
name: "{{ ansible_env['USER'] }}"
become: yes