Ansible Installation On AWS
Ansible Installation On AWS
Ansible Installation On AWS
Varaprasad
1 Vara
Varaprasad
2 Vara
Varaprasad
Installation:
1. Install epel-release on both master and client machines
# rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
Varaprasad
Configuration:
1. Create a new user on master & client machines
# useradd ansadmin
Varaprasad
# passwd ansadmin
2. Grant admin access to created user for master & client machines
# visudo
3. Allow password authentication to yes so that ldap users can login using
username & password on master & client machines
4 Vara
Varaprasad
# vi /etc/ssh/sshd_config
Enable Password authentication to yes
Varaprasad
5 Vara
Varaprasad
# ifconfig -a
On Master:
# ssh-copy-id <client-ipaddress>
6 Vara
Varaprasad
8 Vara
Varaprasad
9 Vara
Varaprasad
Playbook execution:
# ansible-playbook tomcat_playbook.yml
Varaprasad
10 Vara