DevOps Classroomnotes 30/Dec/2022

Ansible Setup with Key Based Authentication between ACN and Node

  • Overview
  • Create two linux vm’s
  • Create a user on both vms with password
  • Ensure the user has sudo permissions
  • Now create an ssh key pair on Ansible control node
    Preview
    Preview
  • copy the public key from Ansible control node to node
    Preview
    Preview
  • Try login from ansible control node to node without password
    Preview
  • Install ansible
  • Create an inventory with one entry i.e. node private ip
    Preview

Lets Have fun with some manual activities

Installing apache server and creating an extra html page.

  • ubuntu:
    • Refer Here for manual steps
    • Manual steps
      sudo apt update
      sudo apt install apache2 -y

Ways of Work in Ansible (First Version)

  • In Ansible work organization is as shown below
    Preview
  • We create playbooks in YAML format which is collection of plays.
  • Each Play will have

    • where the play has to be executed
    • Which user should be executing the work
    • List of modules to perform your automation where we describe the desired state
  • Ensure you have valid manual steps (which are working)
  • For each manual step find out an equivalent module
  • Refer Here for YAML and Json Tutorial.

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