Skip to content

Latest commit

 

History

History

ansible_demo

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 

on mac

$ brew install ansible
$ ansible --version
$ ansible localhost -m ping

on ec2 (centos) -- for privilaged access, we require root user access

  1. Create a password for 'root' user
$ sudo su -
$ passwd
  1. update sshd_config file for allowing Password Authentication (with root user)
vi /etc/ssh/sshd_config

look for line 'PasswordAuthentication'; uncomment 'PasswordAuthentication yes' and comment 'PasswordAuthentication no'

PasswordAuthentication yes
#PasswordAuthentication no