Prepare The Script
There are two ways to download the connector to an endpoint:
1. Download the connector from the internet using the scripts below:
- For CentOS, RHEL, OracleLinux, SUSE, AmazonLinux (Ansible-DeployJetPatchConnectorFromInternetOnLinux.sh)
- For Ubuntu, Debian (Ansible-DeployJetPatchConnectorFromInternetOnDebian.sh)
- In this case, you will have first to download the connector to a mounted disk.
- Check that all your machines can access the mounted disk.
- For CentOS, RHEL, OracleLinux, SUSE, AmazonLinux (Ansible-DeployJetPatchConnectorFromLocalOnLinux.sh)
- For Ubuntu, Debian (Ansible-DeployJetPatchConnectorFromLocalOnDebian.sh)
Important: In both ways, you need to Configure the CoreServerURL Parameter with your JetPatch Server address.
Run The Script On Remote Machines
1. Upload the script you just prepared in Ansible. For this article we assume the script is located in :
2. (Optional) Update The Hosts File:
If you're starting out, then you need to create a group in your hosts file that we will run the setup script on. For this article, my group is
3. Create the Playbook
Now we need to create the ansible-playbook that will transfer that script to the remote server(s) and execute it. This article refers it as:
- hosts: my-servers
- script: /home/jetpatch/scripts/Ansible-DeployJetPatchConnectorFromInternetOnLinux.sh
4. Run the following command to execute your script. You may or may not need to swap out the
ansible-playbook setup.yml --user=$USER
Important: The user you connect with will need passwordless sudo privileges.