Create requirements.yml
file in your playbook repository (or add to the existing file):
collections:
- name: https://github.com/paritytech/ansible-galaxy.git
type: git
version: 1.6.2
or
collections:
- name: paritytech.chain
version: 1.6.2
If you want to install collections in the project space, you have to run:
mkdir collections
ansible-galaxy collection install -f -r requirements.yml -p ./collections
If you want to install collections in the global space (~/.ansible/collections
),
you have to run:
ansible-galaxy collection install -f -r requirements.yml