|
|
|
@ -10,8 +10,8 @@ You can set up a ``requirements.yml`` file to install multiple collections in on
|
|
|
|
|
|
|
|
|
|
# With the collection name, version, and source options
|
|
|
|
|
- name: my_namespace.my_other_collection
|
|
|
|
|
version: 'version range identifiers (default: ``*``)'
|
|
|
|
|
source: 'The Galaxy URL to pull the collection from (default: ``--api-server`` from cmdline)'
|
|
|
|
|
version: ">=1.2.0" # Version range identifiers (default: ``*``)
|
|
|
|
|
source: ... # The Galaxy URL to pull the collection from (default: ``--api-server`` from cmdline)
|
|
|
|
|
|
|
|
|
|
You can specify the following keys for each collection entry:
|
|
|
|
|
|
|
|
|
@ -56,12 +56,13 @@ You can also add roles to a ``requirements.yml`` file, under the ``roles`` key.
|
|
|
|
|
roles:
|
|
|
|
|
# Install a role from Ansible Galaxy.
|
|
|
|
|
- name: geerlingguy.java
|
|
|
|
|
version: 1.9.6
|
|
|
|
|
version: "1.9.6" # note that ranges are not supported for roles
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
collections:
|
|
|
|
|
# Install a collection from Ansible Galaxy.
|
|
|
|
|
- name: geerlingguy.php_roles
|
|
|
|
|
version: 0.9.3
|
|
|
|
|
version: ">=0.9.3"
|
|
|
|
|
source: https://galaxy.ansible.com
|
|
|
|
|
|
|
|
|
|
To install both roles and collections at the same time with one command, run the following:
|
|
|
|
|