nrec-ansible/project/roles/docker/tasks/main.yml

14 lines
359 B
YAML
Raw Normal View History

2022-01-13 00:16:33 +00:00
---
- 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