Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


Can you write a simple playbook to install nginx on a host machine?



Can you write a simple playbook to install nginx on a host machine?..

Answer / Subhiksha Jaiswal

"[
{"name": "nginx",n "tasks": [n {"apt": {"name": "nginx", update_cache: true, present: true}},n {"file": {"path": "/etc/nginx/sites-available/default", content: "...", state: "touch"}},n {"service": {"name": "nginx", enabled: true, state: "started"}}n ]n }"]

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Ansible Interview Questions

Does ansible support hardware provisioning?

1 Answers  


What is the way to access shell environment variables in ansible?

1 Answers  


How do I generate crypted passwords for the user module?

1 Answers  


Is ansible an open source tool?

1 Answers  


How do I speed up management inside ec2?

1 Answers  


What is the use of ansible vaults?

1 Answers  


Explain what are playbooks in ansible? Explain with some examples.

1 Answers  


Write a playbook to create a backup of a file in the remote servers before copy.

1 Answers  


What are ad-hoc commands? Give an example.

1 Answers  


When to use {{}} ? How to interpolate variables or dynamic variable names?

1 Answers  


How does configuration management is help an organization?

1 Answers  


How do I copy files recursively onto a target host?

0 Answers  


Categories