Ansible Level 3 - Task 03 - Ansible Manage Services

Hello,

the task description is asking for tomcat installation, but doesn’t mentioned if tomcat has to be installed via rpm package or via downloading the tomcat archive.

extract from the description:
a. On jump host create an Ansible playbook /home/thor/ansible/playbook.yml and configure it to install tomcat on all app servers.
b. After installation make sure to start and enable tomcat service on all app servers.
c. The inventory /home/thor/ansible/inventory is already there on jump host.
d. Make sure user thor should be able to run the playbook on jump host.

I assumed that tomcat should be installed via yum/dnf and than service should be started, but:

  • there is no tomcat package in the yum/dnf repos of CentOS 8
  • validation failed with error that tomcat package is not installed - so the validator is searching for a tomcat package

SubmitCompleteIncomplete

  • package ‘tomcat’ is not installed on App Server 1 using Ansible playbook ‘/home/thor/ansible/playbook.yml’
    ERROR test_ansible_service.py - AssertionError: - package ‘tomcat’ is not ins…

How do you expect to install tomcat package when it is not in the yum/dnf repos? There is no mention that we have to add for example some extra repo from where we can install tomcat?

It is written that I can request a review from the dashboard, but this option is not available in Kodekloud v2 - when I click on the Task Review - it says “Coming soon”

How should I proceed here? Any suggestions are welcomed!

Thanks in advance!

Hi @v.germanov,
Thanks for your feedback. I have forwarded your concern to the KKE lab team. They will review it.

Regards,

Hi @Tej-Singh-Rana,

do you have any update on this?

Thanks!

Hi @v.germanov,
Yes, the team has updated the description. Now, you will see the packages available in the yum repo.

Regards,

Hi @Tej-Singh-Rana,

Thanks! Just redo the task and all is good.

Thank you very much for your help!

Regards

Hello Team,

I’m also facing the same issue where the task is getting failed even though package is properly installed on all app servers.

I have tried it with package as well as yum.

systemctl enable servicename maybe ?