Step1:- On the machine with Ansible, generate the SSH key
Syntax: ssh-keygen
Step 2:Copy the generated SSH keys onto the hosts using copy id command
Step3: Before installing Ansible package add Ansible repository to your system
Syntax: sudo apt-add-repository ppa:ansible/ansible
Step3: Run the update command before installing to update existing packages
Syntax: sudo apt-get update
Step4: Now install the Ansible package
Syntax: sudo apt-get install ansible
Step5: You can check if you’re on the latest version of Ansible by running the version command
Syntax: ansible --version
Comments
Post a Comment