Auto Light Dark
Auto Light Dark

(Linux) Ansible Playbook Installation

Cloudamize Ansible Playbook

This is an Ansible playbook to automate the installation of the Cloudamize collector on Linux servers.

Please note that this playbook is an example of a single method of installing the agent on many machines and may require modifications to work in your environment.

Step 1: Install Ansible on the Control Node

Install Ansible on a machine that has SSH access to your Linux servers.

  • On Ubuntu/Debian, run sudo apt install ansible

  • On CentOS/Red Hat, run sudo yum install ansible

Step 2: Clone the Playbook Repository

Clone this repo: git clone https://github.com/CloudamizeHoldings/cmz-ansible.git or download the zip file.

Step 3: Configure the Target Inventory

Edit inventory.ini to include the Linux servers you wish to monitor.

[cloudamize]
###############################################################################
###################### Add HostNames or IP addresses here ####################

example1.server.com
example2.server.com
example3.server.com


###############################################################################
[all:vars]
ansible_python_interpreter=/usr/bin/python3
ansible_ssh_common_args='-o StrictHostKeyChecking=no'

Step 4: Execute the Installation Script

Run the install shell script and follow the prompts.
Note: A proxy server is not required, and these values can be left blank.

$ ./install.sh
Customer Key: 0dbc6803...
Region (US/EU/AE): us

* Please enter proxy details (enter for none)
Proxy Server (NO PORT): 10.0.0.1
Proxy Port: 80

* Please enter proxy auth (enter for none)
Proxy User: someuser
Proxy Password:
* Please enter SSH details
SSH user: ansible
SSH password:

Step 5: Verify Agent Status in the Console

Log in to the Cloudamize Console and navigate to Discover > Inventory Settings to verify that the newly deployed machines are reporting with an Active status (initial check-in typically takes 5–10 minutes).

If you have any queries, please get in touch with the helpdesk via our Helpdesk Portal or by email at helpdesk@cloudamize.com.