Deploy dbbot and Configure Ansible
dbbot has a built-in portable Ansible distribution (2.10.5), with the goal of reducing environment intrusion and version conflicts. The standard process has only two steps:
- Unzip dbbot.
- Register and verify built-in Ansible.
1. Download and unzip dbbot
cd ~
dbbot_version="1.11.20250429"
wget "https://github.com/fanderchan/dbbot/releases/download/${dbbot_version}/dbbot-${dbbot_version}-Linux-x86_64.tar.gz"
tar -zxvf "dbbot-${dbbot_version}-Linux-x86_64.tar.gz" -C /usr/local
Recommended installation path: /usr/local.
After decompression is complete, it is recommended to confirm the core directory first:
ls -1 /usr/local/dbbot
Typical output should contain:
mysql_ansibleclickhouse_ansiblemonitoring_prometheus_ansibleportable-ansible-v0.5.0-py3
2. Register the portable Ansible distribution
cd /usr/local/dbbot/portable-ansible-v0.5.0-py3
sh setup_portable_ansible.sh
source ~/.bashrc
Verify installation:
ansible --version
Expected key points:
- Ansible version:
2.10.5 - Python version:
3.x
Common instructions
- dbbot’s Playbook is mainly based on Python 3 complete testing.
- When the target machine only has Python 2, Ansible will perform compatibility processing according to the actual environment.
- MySQL and ClickHouse subdirectories share the same control node environment, and there is no need to install multiple sets of Ansible separately.
Next chapter: dbbot Configuration and Single-Node Deployment Demo