Installing Infoblox NIOS Modules for Ansible Collections
You can install the Infoblox NIOS modules for Ansible Collections from the Ansible Galaxy portal or from the GitHub repository. Ensure that your setup meets the Prerequisites, and then proceed to installing the collection.
Note
Prior versions of NIOS Modules for Ansible Collections such as version 1.1.0 or earlier require Ansible core version 2.10 or earlier to function properly. For software versions recommended by Infoblox, see Prerequisites.
Installing from the Galaxy Portal
You can install NIOS Modules for Ansible Collections offline or directly from the Ansible Galaxy portal.
To install directly from Ansible Galaxy, run the following command:
shell $ ansible-galaxy collection install infoblox.nios_modules
The collections folder is installed at ~/.ansible/collections/ansible_collections/infoblox/nios_modules.
Alternatively, you can download the TAR file of the latest or a prior version of NIOS Modules for Ansible Collections, which is hosted in Galaxy, and then install it offline. To perform an offline installation, complete the following steps:
On the nios modules page in the Ansible Galaxy portal, from the Install Version drop-down list, choose the required version of NIOS Modules for Ansible Collections.
By default, the latest version is selected.Click Download tarball and save the file.
In the CLI, go to the
~/.ansible
directory and run the following command:$ ansible-galaxy collection install infoblox-nios_modules-<version>.tar.gz -p /home/<user>/.ansible/collections
For the list of supported versions, see the Software compatible with Infoblox NIOS Modules for Ansible Collections table.
Installing from the GitHub Repository
You can get the latest commit of NIOS Modules for Ansible Collections from the master branch of the GitHub repository. To install, run the following command:
$ ansible-galaxy collection install git+https://github.com/infobloxopen/infoblox-ansible.git#ansible_collections/infoblox/nios_modules
To download NIOS Modules for Ansible Collections and perform an offline installation, complete the following steps:
Clone the Git repository by running the following command:
$ git clone https://github.com/infobloxopen/infoblox-ansible.git
Build the collection by running the following command from the root directory of the collection:
$ ansible-galaxy collection build
This creates a tarball of the built collection, in the current directory.Install the collection:
$ ansible-galaxy collection install infoblox-nios_modules-<version>.tar.gz -p /home/<user>/.ansible/collections