DevOps Classroomnotes 01/Apr/2022

Ansible Galaxy

  • Ansible Galaxy Refer Here is collection of reusable ansible playbooks in the form of roles and collections shared by the community which we can use to configure our application.
  • Now lets try to install mysql. We search for mysql in the Ansible Galaxy and lets restrict ourselves for using roles
  • The mysql role which we found Refer Here
    Preview
    Preview
  • Refer Here for the changes done
  • Now lets login into ansible control server and check the execution of the playbook
    Preview
  • As the role is not found the issue arises, lets install the roles
    Preview
  • After installing the role the syntax check passes
    Preview
    Preview
    Preview
    Preview
  • Refer Here for mysql role
  • Exercise: Try install postgresql using the ansible role on any node of your choice Refer Here
  • Refer Here for the changes
    Preview
  • Refer Here for the role written for install postgres

Leave a Reply

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

About continuous learner

devops & cloud enthusiastic learner