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

  • copy the public key from Ansible control node to node

  • Try login from ansible control node to node without password
  • Install ansible
  • Create an inventory with one entry i.e. node private ip

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
  • 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 ReplyCancel reply

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

Discover more from Direct DevOps from Quality Thought

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

Continue reading

Exit mobile version
%%footer%%