changeset 2460:d46c13ff4cd9

Update with different version.
author Oleksandr Gavenko <gavenkoa@gmail.com>
date Sun, 15 Nov 2020 22:57:57 +0200
parents 607f6d056e26
children 1a943cc3f862
files ansible.rst
diffstat 1 files changed, 17 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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
+