Installation
Ansible Galaxy
Run the following command to install the netbox.netbox collection:
ansible-galaxy collection install netbox.netbox
Note
Installing Ansible Collections using Git within a requirements.yml is not supported until Ansible 2.10.
Follow the official docs to learn more about other installation methods.
Build From Source
Follow these steps to install from source:
git clone git@github.com:netbox-community/ansible_modules.gitcd ansible_modulesansible-galaxy collection build .ansible-galaxy collection install netbox-netbox*.tar.gz
Build From Source (Pull Request)
This is useful to test code within PRs.
git clone git@github.com:netbox-community/ansible_modules.gitcd ansible_modulesgit fetch origin pull/<pr #>/head:<whatever-name-you-want>git checkout <whatever-name-you-want>ansible-galaxy collection build .ansible-galaxy collection install netbox-netbox*.tar.gz
Note
The following link provides detailed information on checking out pull requests locally: GitHub