On 06.05.22 14:52, Tony Wong wrote:
is there docker module or I should just use shell module?
I believe it's always better to use designated Modules over shell or command

that said ... you may want to get familiar (or at least be aware of this list <https://docs.ansible.com/ansible/latest/collections/index_module.html>) where you can find any modules. that said ... here is thedocker module <https://docs.ansible.com/ansible/latest/collections/index_module.html#community-docker> (from that list)

you can study it online or with the built-in help like ansible-doc [module.name]

one last comment ... just like using designated modules for designated tasks in Ansible it's always best to use designated Threads for different problems. This may not make a difference for you just now, but others who may be following the list have a chance to benefit from the solution somebody is digging out.

--
You received this message because you are subscribed to the Google Groups "Ansible 
Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/c25df8c6-9857-893b-93a3-4fe6582ace32%40mailbox.org.

Reply via email to