DevOps Classroomnotes 29/Dec/2022

Installing Ansible

  • Fixing issue with Centos or any linux os
  • Ansible can be installed in two ways

  • Python based installation
python3 --version
pip3 --version
python3 -m pip install --user ansible

Preview
Preview

Ansible deals with credentials

  • Possible Credentials

    • Username and Password
    • Username and key
  • Ansible when executing playbook logins to the node using credentials provided and takes help of the python installed on the node to get the job done
  • Login into the node
    • SSH: This is used for linux and mac
    • Winrm: This is used for windows

Username and Password Authentication

  • Overview
    Preview
  • Linux machines allow us to login using ssh protocol and configurations of ssh are present in /etc/ssh/sshd_config
    • The field PasswordAuthentication should be yes
sudo nano /etc/ssh/sshd_config
# Change PasswordAuthentication to yes
sudo systemctl restart sshd
  • Create a user called as jenkins
    Preview
  • Lets make jenkins administrator
sudo visudo

Preview
Preview
* Lets ask not to prompt for password for jenkins user
Preview
* Do the same stuff for node 2

Preview
Preview

Note

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