NetApp Solution Automation

Contributors Download PDF of this page


  1. Requirements for the Ansible control node,:

    1. A RHEL/CentOS machine with the following packages installed:

      1. Python3

      2. Pip3

      3. Ansible (version greater than 2.10.0)

      4. Git

If you have a fresh RHEL/CentOS machine without the above requirements installed, follow the below steps to setup that machine as the Ansible control node:

  1. Enable the Ansible repository for RHEL-8/RHEL-7

    1. For RHEL-8 (run the below command as root)

      subscription-manager repos --enable ansible-2.9-for-rhel-8-x86_64-rpms
    2. For RHEL-7 (run the below command as root)

      subscription-manager repos --enable rhel-7-server-ansible-2.9-rpms
  2. Create a .sh file

  3. Paste the below content in the file

    echo "Installing Python ------>"
    sudo yum -y install python3 >/dev/null
    echo "Installing Python Pip ------>"
    sudo yum -y install python3-pip >/dev/null
    echo "Installing Ansible ------>"
    python3 -W ignore -m pip --disable-pip-version-check install ansible >/dev/null
    echo "Installing git ------>"
    sudo yum -y install git >/dev/null
  4. Make the file executable

    chmod +x
  5. Run the script (as root)