--- 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
+