#!/usr/bin/env bash # Usage: ./hacking/build.sh # galaxy.yml build_ignore is not implemented in Ansible 2.9, so we have to delete files we don't want # Remove previous test installs rm -r ansible_collections # Remove old built versions rm netbox-netbox-*.tar.gz # Remove test output rm -r tests/output rm -r .pytest_cache ansible-galaxy collection build --force --verbose . # To verify what files have been included in the build: # tar --gunzip --list --file netbox-netbox-*.tar.gz