nrec-ansible/project/roles/docker/tasks/main.yml
Torjus Håkestad da57e58a3d
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
Add docker role
2022-01-13 01:16:33 +01:00

14 lines
359 B
YAML

---
- name: Install debian packages
import_tasks: packages_debian.yml
when: ansible_facts['os_family'] == 'Debian'
- name: Install rhel packages
import_tasks: packages_redhat.yml
when: ansible_facts['os_family'] == 'RedHat'
- name: Ensure service is started and enabled
ansible.builtin.systemd:
name: docker
state: started
enabled: yes