Update with different version.
authorOleksandr Gavenko <gavenkoa@gmail.com>
Sun, 15 Nov 2020 22:57:57 +0200
changeset 2460 d46c13ff4cd9
parent 2459 607f6d056e26
child 2461 1a943cc3f862
Update with different version.
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
+