Interview Prep/Ansible/Roles, Collections and Galaxy

How do you list and verify installed collections?

IntermediateConceptRoles, Collections and Galaxy
Answer
ansible-galaxy collection list                       # all with versions and paths
ansible-galaxy collection list amazon.aws
ansible-galaxy collection verify amazon.aws          # compare to the server's checksums

list also reveals duplicates, when the same collection is installed in two paths and the wrong one wins. verify detects local modifications or a corrupted install. You can see which collection a module resolves to with ansible-doc <fqcn>.

All Ansible questions Roadmap: Ansible

More on Roles, Collections and Galaxy