My CP-Ansible Playbooks
There are playbooks (with instructions) for the following configurations:
- One Zookeeper; one Broker
- One Zookeeper; one Broker; Confluent Control Center
- All CP Components; no security configured
- One Zookeeper; one Broker; Confluent Control Center; TLS/SSL
- One Zookeeper; one Broker; Kerberos
- KRaft Mode: three Controllers; three Brokers; C3
- KRaft Mode: three Controllers; three Brokers; C3; Schema Registry; TLS/SSL
Follow these steps to install CP-Ansible (on Ubuntu):
ssh -i filenameofyour.pem ubuntu@ec2-xxx-xxx-xxx-xxx.aws-region.compute.amazonaws.com
pip3 install ansible
python3.11 -m pip install --upgrade pip
ansible-galaxy collection install git+https://github.com/confluentinc/cp-ansible.git
ansible-galaxy collection install ansible.posix
ansible-galaxy collection install community.general
For Redhat 9:
ssh -i filenameofyour.pem ec2-user@ec2-xxx-xxx-xxx-xxx.aws-region.compute.amazonaws.com
# sudo yum install python3 - not necessary, I think?
sudo dnf install ansible-core
ansible-galaxy collection install git+https://github.com/confluentinc/cp-ansible.git
ansible-galaxy collection install ansible.posix
ansible-galaxy collection install community.general
If you're planning on running CP-Ansible on OS X, follow these steps (using homebrew):
brew install python@3.11 # or python3
brew install ansible
ansible-galaxy collection install git+https://github.com/confluentinc/cp-ansible.git
ansible-galaxy collection install ansible.posix
ansible-galaxy collection install community.general
You may also need to run this after installing python3:
brew postinstall python3
These playbooks have been tested with the latest version of cp-ansible (7.4.0) and Ubuntu 20.04 on AWS:
Redhat 9 has been certified with Confluent Platform 7.4.x+ on AWS: