Scenario: Installing tomcat9 on ubuntu 20.04 (contd..)
- Lets configure the tomcats web interface Refer Here
- Refer Here for the changes done to accomodate the manager, host manager and tomcat users
- Now after succesful execution of tomcat, we should be able to navigate manager and hostmanager parts of tomcat from ui.
- When i rerun this playbook, six tasks are getting changed
- Lets try to fix this using Ansible Handlers.
- Refer Here for the playbook written.
- The playbook developed so far works only on ubuntu.
- If we need to make the playbook work for both centos 7 and ubuntu
- Refer Here for centos7 steps
Ansible Handlers
- Refer Here for the official docs of handlers
Ansible Facts
- Refer Here
- Ansible also supports conditionals using when Refer Here