InfoScale™ Installation, Upgrade, and Configuration Using Ansible - Linux
- Section I. InfoScale Ansible playbooks
- Section II. InfoScale Ansible end to end workflow / solution
InfoScale get host info
This documentation explains how Ansible role can be used for collecting the required information from the nodes.
The goals of this guide is to collect host information of the nodes which is later used for other InfoScale operations.
Pre-requisites
Ansible control node is properly set to run Ansible playbooks.
The role is installed or copied as per your environment
Role information
The role can be used like this:
```yaml --- - name: My playbook for InfoScale tasks hosts: cluster_nodes roles: - get_host_info
This role should be used when a user wants to collect information about the nodes.
Variables
release_matrix_path (optional): If the user has downloaded the latest release matrix, this variable can be used to provide the path of the release matrix.
Using variables in Ansible
There are several ways of modifying the default variables. You can check the Ansible documentation for more information.
Command line
This role can be included in the playbook as per the user's environment workflow or requirements. The playbook can be run as below:
From the command line, it can be done with the -e EXTRA_VARS or --extra-vars EXTRA_VARS flag:
```cli ansible-playbook -i hosts playbooks/myinfoscale.yml -e "release_matrix_path='/absolute/path/of/release/matrix'"
Role usage
This role can be used in the playbooks in all the ways Ansible supports. The following is the example of how to import this role.
```yml - name: Get host info import_role: name: get_host_info