File tree Expand file tree Collapse file tree 1 file changed +36
-7
lines changed
docs/docsite/rst/command_guide Expand file tree Collapse file tree 1 file changed +36
-7
lines changed Original file line number Diff line number Diff line change @@ -35,20 +35,49 @@ See :ref:`ansible-playbook` for detailed documentation.
35
35
ansible-galaxy
36
36
==============
37
37
38
- Installing a collection:
38
+ Installing collections
39
+ ^^^^^^^^^^^^^^^^^^^^^^
40
+
41
+ * Install a single collection:
39
42
40
43
.. code-block :: bash
41
44
42
- ansible-galaxy collection install mynamespace.mycollection
45
+ ansible-galaxy collection install mynamespace.mycollection
43
46
44
- Downloads ``mynamespace.mycollection `` from the configured Galaxy server (`<galaxy.ansible.com >`_ by default).
45
-
47
+ Downloads ``mynamespace.mycollection `` from the configured Galaxy server (`galaxy.ansible.com ` by default).
46
48
47
- Listing all installed collections:
49
+ * Install a list of collections:
48
50
49
51
.. code-block :: bash
50
52
51
- ansible-galaxy collection list
53
+ ansible-galaxy collection install -r requirements.yml
52
54
53
- See :ref: `ansible-galaxy ` for detailed documentation.
55
+ Downloads the list of collections specified in the ``requirements.yml `` file.
56
+
57
+ * List all installed collections:
58
+
59
+ .. code-block :: bash
60
+
61
+ ansible-galaxy collection list
62
+
63
+ Installing roles
64
+ ^^^^^^^^^^^^^^^^
65
+
66
+ * Install a role named `example.role `:
67
+
68
+ .. code-block :: bash
69
+
70
+ ansible-galaxy role install example.role
71
+
72
+ # SNIPPED_OUTPUT
73
+ - extracting example.role to /home/user/.ansible/roles/example.role
74
+ - example.role was installed successfully
75
+
76
+
77
+ * List all installed roles:
54
78
79
+ .. code-block :: bash
80
+
81
+ ansible-galaxy role list
82
+
83
+ See :ref: `ansible-galaxy ` for detailed documentation.
You can’t perform that action at this time.
0 commit comments