PLEASE HELP ASAP 19 minutes left
As a member of the IT team you have been asked to create an automation script to install and configure the nginx web server, extract project files and verify that all tasks were completed successfully. To achieve this you need to write an Ansible Playbook. • Ansible is installed in version 2.8 Your task Create an Ansible Playbook in YAML format according to the following specifications: • the playbook file should contain all Ansible tasks and variables required to solve the problem; *• nginx is needed on all servers: you need to target all hosts in the playbook. All tasks have to be executed step by step: • Install ngin package using the apt 0 Ansible module; • Copy the nginx configuration file from /project/application. conf to the destination path under /etc/nginx/sites-enabled/application.conf usingthe copy D Ansible module; • Extract the project files from /project/www.tar.gz to the destination directory /var/www/html usingthe unarchive 0 Ansible module; • Start the nginx web server with the service nginx start command, using the shell • Ansible module; • Test connectivity with the web server and fetch the main page from http://localhost/ O (you have both curl 0 and get 0 commands available), and make sure HTML output is displayed in the Ansible logs by using the debug O Ansible module.