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


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
  • 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
  • Lets make jenkins administrator
sudo visudo



* Lets ask not to prompt for password for jenkins user

* Do the same stuff for node 2


Note

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%%