Ansible Variables
-
Ansible variables can be passed during runtime and at different places
- playbook
- inventory
- roles
- …
- command line during execution
- Lets write a simple playbook with a debug module
- Refer Here for a playbook with inventory and group_vars and host_vars folders
Adopting variables to tomcat playbook
- Refer Here for changes
- Next steps
sudo chown -R tomcat:tomcat /opt/tomcat
sudo chmod -R g+r /opt/tomcat/conf
sudo chmod g+x /opt/tomcat/conf
- Refer Here for changes done to give recursive ownership t tomcat user and and group
