Create a setup of 3 ubuntu Servers where one of the servers is the Master server where Ansible is installed whereas the other 2 webservers are managed nodes.
Perform the below tasks by using Ansible Adhoc commands.
1. Install Apache server on webservers using shell module
2. Stop Apache service on webservers using service module
3. Restart Apache service on webservers using service module.
4. Uninstall Apache service using apt module
5. Run date command on webservers.
6. Create a file call app.java under /tmp/java folder
7. Add some content to app.java file.
8. Read app.java file using shell module.
9. Delete app.java file.
10. Install tree command using apt module.
Comments
Post a Comment