ansible-hashistack/roles/docker/tasks/alpine.yml

20 lines
369 B
YAML
Raw Permalink Normal View History

2023-09-20 09:49:32 +02:00
---
- name: install docker apk package
community.general.apk:
name:
- iptables
- docker
state: present
update_cache: yes
become: true
- name: reboot machine to enable iptables module
ansible.builtin.reboot:
- name: enable and start docker
ansible.builtin.service:
name: docker
enabled: true
state: restarted
become: true