Deploying Connector on the Endpoint Itself Overview
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, Ubuntu, OracleLinux, SUSE, AmazonLinux (Ansible-DeployJetPatchConnectorFromInternetOnLinux.sh)
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 :
/home/jetpatch/scripts/Ansible-DeployJetPatchConnectorFromInternetOnLinux.sh
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 my-servers
.
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: jetpatchconnector.yml
.
- hosts: my-servers
sudo: true
tasks:
- 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 $USER
variable.
ansible-playbook setup.yml --user=$USER
Important: The user you connect with will need passwordless sudo privileges.
Comments
0 comments
Article is closed for comments.