Configure the Linux Execution Server for Ansible

To run Ansible configuration management on this Execution Server, several additional configurations are needed.

 

Prerequisites:

To configure the Execution Server to run Ansible:

  1. Install Ansible as globally available command line utility.

    python3 -m pip install ansible
    To install in an offline environment:
    1. Download the offline dependencies from here.
    2. Place them in the Quali Server offline repository:

      C:\Program Files (x86)\QualiSystems\CloudShell\Server\Config\Pypi Server Repository

    3. Run the following command:

      python3 -m pip install ansible --index-url=http://<QUALI_SERVER_IP>:8036/simple --trusted-host <QUALI_SERVER_IP>

      Replace <QUALI_SERVER_IP> with the IP of the machine containing the offline packages.

      index-url tells pip to download from local repo rather than public pypi, and trusted-host says you can trust this local server

  2. Verify install by running:

    ansible --version

  3. Install pywinrm into same python environment as global Ansible. This library is required by Ansible to connect to Windows Apps.

    python3 -m pip install pywinrm
  4. Install the CentOS sshpass module to allow password authentication to Apps.

    yum install sshpass