20 lines
369 B
YAML
20 lines
369 B
YAML
---
|
|
- 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
|