Ansible playbook giving issues

Hi,

I have been deploying Confluent version 7.7.1 using Ansible playbooks and getting following error:-
###################
TASK [confluent.platform.kafka_controller : Copy Kafka broker’s Service to Create kafka Controller’s service] **********************************
“msg”: “Source /opt/confluent/confluent-7.7.1/lib/systemd/system/confluent-server.service not found”
######################

When checked in the tar of 7.7.1, (faced same issue with version 7.8.0) this file does not exists: -

root@XXXX~]# ll /opt/confluent/confluent-7.7.1/lib/systemd/system/
total 24
-rwxr-xr-x 1 root root 347 Sep 6 19:32 confluent-kafka-connect.service
-rwxr-xr-x 1 root root 404 Sep 6 19:27 confluent-kafka-rest.service
-rwxr-xr-x 1 root root 337 Sep 6 19:32 confluent-kafka.service
-rwxr-xr-x 1 root root 412 Sep 6 19:26 confluent-ksqldb.service
-rwxr-xr-x 1 root root 426 Sep 6 19:30 confluent-schema-registry.service
-rwxr-xr-x 1 root root 318 Sep 6 19:32 confluent-zookeeper.service
root@XXXX~]#

hey @amitsh ,

would you mind sharing your yaml?

Best,
Michael


all:
children:
kafka_controller:
hosts:
controller1:

kafka_broker:
  hosts:
   broker1:
   broker2:
   broker3:

schema_registry:
  hosts:
   registry1:

kafka_rest:
  hosts:
   rest1:

ksql:
  hosts:
   ksql1:

kafka_connect:
  hosts:
   connect1:

control_center:
  hosts:
   ccenter1:

hosts:
controller1:
ansible_host: 10.75.36.83
broker1:
ansible_host: 10.75.36.98
broker2:
ansible_host: 10.75.36.103
broker3:
ansible_host: 10.75.36.107
registry1:
ansible_host: 10.75.36.83
rest1:
ansible_host: 10.75.36.83
ksql1:
ansible_host: 10.75.36.83
connect1:
ansible_host: 10.75.36.83
ccenter1:
ansible_host: 10.75.36.83

vars:
ansible_connection: ssh
ansible_user: root
installation_method: archive
confluent_archive_file_source: /home/amitsh/ANSIBLE/CONFLUENT/packages/confluent-community-7.7.1.tar.gz
confluent_archive_file_remote: false
jolokia_enabled: true
jolokia_url_remote: false
jolokia_jar_url: /home/amitsh/ANSIBLE/CONFLUENT/packages/jolokia-jvm-1.6.2-agent.jar
jmxexporter_enabled: true
jmxexporter_url_remote: false
jmxexporter_jar_url: /home/amitsh/ANSIBLE/CONFLUENT/packages/jmx_prometheus_javaagent-0.12.0.jar
ssl_enabled: true

as you try to deploy community version you need to set the following

all:
  vars:
    confluent_server_enabled: false

hth,
michael

Thanks Michael, but now I am stuck here, can you check and update.

“msg”: “Source /opt/confluent/confluent-7.7.1/lib/systemd/system/confluent-control-center.service not found”


all:
children:
kafka_controller:
hosts:
10.75.36.83:

kafka_broker:
  hosts:
   10.75.36.98:
   10.75.36.103:
   10.75.36.107:

schema_registry:
  hosts:
   10.75.36.83:

kafka_rest:
  hosts:
   10.75.36.83:

ksql:
  hosts:
   10.75.36.83:

kafka_connect:
  hosts:
   10.75.36.83:

control_center:
  hosts:
   10.75.36.83:

vars:
confluent_server_enabled: false
kafka_broker_configure_multiple_listeners: false
ansible_connection: ssh
ansible_user: root
installation_method: archive
confluent_archive_file_source: /home/amitsh/ANSIBLE/CONFLUENT/packages/confluent-community-7.7.1.tar.gz
confluent_archive_file_remote: false
jolokia_enabled: true
jolokia_url_remote: false
jolokia_jar_url: /home/amitsh/ANSIBLE/CONFLUENT/packages/jolokia-jvm-1.6.2-agent.jar
jmxexporter_enabled: true
jmxexporter_url_remote: false
jmxexporter_jar_url: /home/amitsh/ANSIBLE/CONFLUENT/packages/jmx_prometheus_javaagent-0.12.0.jar
ssl_enabled: false
health_checks_enabled: false
kafka_controller_health_checks_enabled: false
kafka_broker_health_checks_enabled: false
schema_registry_health_checks_enabled: false
kafka_connect_health_checks_enabled: false
kafka_rest_health_checks_enabled: false
ksql_health_checks_enabled: false
control_center_health_checks_enabled: false
confluent_control_center_enabled: false

not sure if this parameter is correct.
what happens if you remove or comment?

and basically ControlCenter is part of the enterprise license
so from a license perspective you won’t get control center with the community packages

https://docs.confluent.io/platform/current/installation/license.html#manage-cp-licenses

https://docs.confluent.io/platform/current/installation/available_packages.html#confluent-control-center

though there is Trial license available with
https://docs.confluent.io/platform/current/installation/license.html#trial-evaluation-license

Ok, thanks for the information. I removed control center deployment and let other components were deployed.
Thanks for your support.

1 Like