DevOps Classroomnotes 03/Jun/2023

Ansible Contd

  • Lets try to install tomcat without using package manager
  • Refer Here for manual steps for installing tomcat 10 on ubuntu 22.04
  • Installing java 11 on ubuntu Refer Here for the changes done
  • Add user and group create Refer Here for the changes
  • Downloading tomcat into temp directory Refer Here for changes
  • Refer Here for the changes to extract tomcat
  • Refer Here for the symlink changes
  • Refer Here for changes to change home directory ownership
  • Lets directly run the linux command form ansible. This is not idempotent Refer Here
  • We need to create a service file but it has dynamic content, so copying static file is not an option, Ansible has templating
  • Refer Here for the changes to use template
  • This should bring up the tomcat server
    Preview
  • As of now when we run our playbook 3 tasks are getting executed every time and this needs to be fixed
    Preview
  • Refer Here for the fix of the above problem
  • Refer Here for the steps to configure tomcat management interface
  • As of now we have written the playbook which works on ubuntu and installs tomcat
  • Tags in Ansible Refer Here

Published
Categorized as Uncategorized Tagged

By continuous learner

devops & cloud enthusiastic learner

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Please turn AdBlock off
Animated Social Media Icons by Acurax Wordpress Development Company

Discover more from Direct DevOps from Quality Thought

Subscribe now to keep reading and get access to the full archive.

Continue reading

Visit Us On FacebookVisit Us On LinkedinVisit Us On Youtube