ANSIBLE
After you configure the hosts.yml file, to install or update all Confluent Platform components, run the all.yml playbook:
hosts.yml
all.yml
ansible-playbook -i hosts.yml all.yml
Important
Ansible Playbooks for Confluent Platform requires hash merging to be enabled in your Ansible configuration file. The ansible.cfg file at the base level of the cp-ansible repo enables hash merging. To make use of it, run the ansible-playbook command with your current directory at the base level of the cp-ansible repo.
ansible.cfg
cp-ansible
ansible-playbook
Install individual components, using the Ansible tags. You must follow the correct order given below to satisfy the dependencies among the components. For example, Kafka will not install until the certificate authority is generated and ZooKeeper is installed.
Similarly, when you update a component section in the hosts.yml file, you can optionally update the component and the preceding components in the order.
ansible-playbook -i hosts.yml all.yml --tags=certificate_authority
ansible-playbook -i hosts.yml all.yml --tags=zookeeper
ansible-playbook -i hosts.yml all.yml --tags=kafka_broker
ansible-playbook -i hosts.yml all.yml --tags=schema_registry ansible-playbook -i hosts.yml all.yml --tags=kafka_rest ansible-playbook -i hosts.yml all.yml --tags=kafka_connect ansible-playbook -i hosts.yml all.yml --tags=ksql
ansible-playbook -i hosts.yml all.yml --tags=control_center