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 |
Does ansible support hardware provisioning?
What is the way to access shell environment variables in ansible?
How do I generate crypted passwords for the user module?
Is ansible an open source tool?
How do I speed up management inside ec2?
What is the use of ansible vaults?
Explain what are playbooks in ansible? Explain with some examples.
Write a playbook to create a backup of a file in the remote servers before copy.
What are ad-hoc commands? Give an example.
When to use {{}} ? How to interpolate variables or dynamic variable names?
How does configuration management is help an organization?
How do I copy files recursively onto a target host?