This is an Ansible module that's all about pulling docker containers!
Copy the module as directed by the Ansible documentation:
Modules [...] are found in the path specified by ANSIBLE_LIBRARY or the --module-path command line option.
You can also add it to a playbook-specific directory:
If a playbook has a ”./library” directory relative to its YAML file, this directory can be used to add ansible modules
In your playbook, use it like:
- name: get the image
docker_pull:
repo: busybox
tag: latest