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 |
Explain the callback plugin in ansible?
How do I keep secret data in my playbook?
Describe your newsletter ansible and who it’s aimed at.
What does fact mean in ansible?
Describe the working of ansible.
How would you access a variable of the first host in a group?
Is ansible an open source tool?
What is ansible role?
How do I speed up management inside ec2?
How would you install ansible on a centos system?
How can you create a lamp stack and deploy a webpage by using ansible?
What is ansible galaxy?