DevOps Classroomnotes 28/Dec/2022

What needs to provided to Ansible

  • Desired State:
    • The Desired state is written in YAML and is called as Playbook.
  • List of Nodes:
    • The nodes where the playbook has to be executed, this is referred as inventory
  • Credentials:
    • Credentials can be passed as part of playbook/inventory/commandline

Setup of Ansible

Ansible Control Node

  • This component takes the inputs mentioned above to execute playbooks on the nodes
  • This Node is a linux vm or physical machine and we install ansible.
  • Credentials:

    • Username
    • Password
    • Key Based Approach
  • Lab Setup:

    • AWS (ubuntu):
      Preview
      Preview
    • Azure (Centos)
      Preview
      Preview
  • Ansible Setup:

sudo apt update
sudo apt install software-properties-common
sudo add-apt-repository --yes --update ppa:ansible/ansible
sudo apt install ansible -y
ansible --version

Preview

sudo yum install epel-release -y
sudo yum install ansible -y
  • The above commands didnt work in Centos 8 distribution. (To be fixed)

Exercise

Note:

  • Installing Necessary Softwares on your System Refer Here

Published
Categorized as Uncategorized Tagged

By continuous learner

devops & cloud enthusiastic learner

Leave a Reply

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

Please turn AdBlock off
Animated Social Media Icons by Acurax Wordpress Development Company

Discover more from Direct DevOps from Quality Thought

Subscribe now to keep reading and get access to the full archive.

Continue reading

Visit Us On FacebookVisit Us On LinkedinVisit Us On Youtube