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
- for expressions we use jinja templates Refer Here
- for module we use template module Refer Here
- Refer Here for the changes to use template
- This should bring up the tomcat server

- As of now when we run our playbook 3 tasks are getting executed every time and this needs to be fixed

- 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
