Create requirements.yml
file in your playbook repository (or add to the existing file):
collections:
- name: https://github.com/paritytech/ansible-polkadot.git
type: git
version: 1.10.0
or
collections:
- name: paritytech.chain
version: 1.10.0
If you want to install collections in the project space, you have to run:
mkdir collections
ansible-polkadot 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-polkadot collection install -f -r requirements.yml