Ansible Task 2
Ansible Task 2
Task 2
*Statement :* *Deploy Web Server on AWS through ANSIBLE!*
♦️Provision EC2 instance through ansible.
♦️Retrieve the IP Address of instance using dynamic inventory concept.
♦️Configure the web server through ansible!
♦️Create role for webserver to customize the Instance and deploy the webpage to root directory.
*Optional :* *Write a playbook for testing of the tasks.*
*For Example: If the task is installation of httpd package then for checking the status of package, ansible has the module named as package_facts.*
*just like that search modules for checking status of each task!*
*if u don't find any module then command module can be useful*
*Complete process have to be automated!
Ansible role has a folder named as test, write the testing playbook there!
Summary : One Click Instance Launched and Web Server Deployed!
- Instance lauch through playbook
- user create and sudo permission
- key transfer
- Create New user
- key transfer
- key expose
- Playbook run and ip retrieve from AWS -
- AWS instance IP ping
- httpd remove from AWS
- running ansible playbook
- httpd running




















Comments
Post a Comment