DevOps Classroom notes 05/Aug/2025

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

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
Published
Categorized as Uncategorized Tagged

By continuous learner

devops & cloud enthusiastic learner

Leave a comment

Turn on JavaScript to leave a comment.

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

Please turn AdBlock off
Social Media Icons Powered by Acurax Web Design Company
Exit mobile version
%%footer%%