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):

    • Azure (Centos)

  • 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

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 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
Customized Social Media Icons from Acurax Digital Marketing Agency
Exit mobile version
%%footer%%