# HG changeset patch # User Oleksandr Gavenko # Date 1605473877 -7200 # Node ID d46c13ff4cd9ffd5b7c59d927b91c6ba552d1751 # Parent 607f6d056e2662951683f4a7eae1798f4bd4a771 Update with different version. diff -r 607f6d056e26 -r d46c13ff4cd9 ansible.rst --- a/ansible.rst Sun Nov 15 20:26:35 2020 +0200 +++ b/ansible.rst Sun Nov 15 22:57:57 2020 +0200 @@ -208,3 +208,20 @@ always: - shell: echo notify +Collections +=========== + +https://docs.ansible.com/ansible/latest/user_guide/collections_using.html + Using collections. + +To install specific version use a colon and conditions with operators: ``==``, ``!=``, ``>``, +``>=``, ``<``, ``<=`` separated by comma:: + + ansible-galaxy collection install 'my_namespace.my_collection:>=1.0.0,<2.0.0' + +Only one version of collection can be installed, if you want to update with different version use +``--force``:: + + ansible-galaxy collection install google.cloud:=0.0.1 + ansible-galaxy collection install --force google.cloud:=1.0.1 +