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...


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



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

Answer / Ritesh Sinha

Here's a simple Ansible playbook to install Nginx on a host:nn- name: Install and configure Nginxn hosts: webserversn tasks:n - name: Install Nginxn apt: name=nginx state=presentn - name: Enable and start the servicen service: name=nginx enabled=yes started=yesn - name: Ensure nginx configuration is loadedn command: service nginx reload

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Ansible Interview Questions

Explain the callback plugin in ansible?

1 Answers  


How do I keep secret data in my playbook?

1 Answers  


Describe your newsletter ansible and who it’s aimed at.

1 Answers  


What does fact mean in ansible?

1 Answers  


Describe the working of ansible.

1 Answers  


How would you access a variable of the first host in a group?

1 Answers  


Is ansible an open source tool?

1 Answers  


What is ansible role?

1 Answers  


How do I speed up management inside ec2?

1 Answers  


How would you install ansible on a centos system?

1 Answers  


How can you create a lamp stack and deploy a webpage by using ansible?

1 Answers  


What is ansible galaxy?

1 Answers  


Categories