- List
1ansible-galaxy collection list
- Install an Ansible Collection
1# From Ansible Galaxy official repo
2ansible-galaxy collection install community.general
3
4# From a tarball locally
5ansible-galaxy collection install ./community-general-6.0.0.tar.gz
6
7# From custom Repo
8ansible-galaxy collection install git+https://git.example.com/projects/namespace.collectionName.git
9ansible-galaxy collection install git+https://git.example.com/projects/namespace.collectionName,v1.0.2
10ansible-galaxy collection install git+https://git.example.com/namespace/collectionName.git
11
12# From a requirement.yml file
13ansible-galaxy collection install -r ./requirement.yaml
- Requirement file to install Ansible Collection
1collections:
2- name: kubernetes.core
3
4- source: https://gitlab.example.com/super-group/collector.git
5 type: git
6 version: "v1.0.6"
7
8- source: https://gitlab.ipolicedev.int/another-projects/plates.git
9 type: git
Comments