Skip to content

Latest commit

 

History

History
48 lines (40 loc) · 1.05 KB

Installation_Ansible_on_Debian.md

File metadata and controls

48 lines (40 loc) · 1.05 KB

Installation of Ansible on Debian

Debian users may leverage the same source as the Ubuntu PPA.

Add the following line to /etc/apt/sources.list`:

deb http://ppa.launchpad.net/ansible/ansible/ubuntu trusty main

Set apt keys

$ sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 93C4A3FD7BB9C367
$ sudo apt update
$ sudo apt install ansible

Configure 'sshd_config'

sudo vi /etc/ssh/sshd_config
PasswordAuthentication yes

Restart the 'sshd' service

sudo service sshd restart

OR

sudo systemctl restart sshd

Create a user for ansible

sudo  useradd ansadmin
sudo  passwd ansadmin

Add to sudo with NOPASSWD

sudo visudo
#add follwoing line
ansadmin	ALL=(ALL)	NOPASSWD: ALL

Install On Other Platforms