Top Ansible Interview Questions and Answers for freshers & Experienced.
Ansible is a free-software platform for configuring and managing computers, combines multi-node software deployment, ad hoc task execution, configuration management, provisioning, Security and Compliance. It manages nodes over SSH or over PowerShell. Modules work over JSON and standard output and can be written in any programming language. The system uses YAML to express reusable descriptions of systems. It aims to provide large productivity gains to a wide variety of automation challenges. Unlike Puppet or Chef, it doesn’t use an agent on the remote host. Instead Ansible uses SSH which is assumed to be installed on all the systems you want to manage. Also, it’s written in Python which needs to be installed on the remote host. This means that you don’t have to setup a client server environment before using Ansible, you can just run it from any of your machines and from the client’s point of view there is no knowledge of any Ansible server (you can run Puppet in standalone mode, but Puppet still needs to be installed). There are some other requirements though, for example if you want to do something related to git on a remote machine a git package must first be installed on the remote machine.
Ansible is available for free and runs on Linux, Mac or BSD. Aside from the free offering, Ansible also has an enterprise product called Ansible Tower. Ansible tool is very simple to use yet powerful enough to automate complex multi-tier IT application environments.
Michael DeHaan, the author of the provisioning server application Cobbler and co-author of the Func framework for remote administration, developed the platform. Ansible, Inc. (originally AnsibleWorks, Inc.) was the company set up to commercially support and sponsor Ansible. Red Hat acquired Ansible in October 2015.Current version is Ansible v2.10.2.0-Octomber 6, 2020.
Which language Ansible is written in?
What are the advantages of Ansible?
Do we have any Web Interface/ Rest API etc for this?
What is Ad-hoc commands in Ansible?
How to write an Ansible ad-hoc command?
How do I submit a change to the documentation in Ansible?
How do you access Shell Environment Variables?
How do I copy files recursively onto a target host in Ansible?
How do I disable cowsay in Ansible?
How do I generate crypted passwords for the user module in Ansible?
How do i see all the inventory vars defined for my host?
What is the best way to make content reusable/redistributable?
How can you speed up management inside in EC2?
What is ask_sudo_pass in Ansible?
What is ask_vault_pass in Ansible?
Write a task to create the directory /tmp/interviewgig
What are the different components of Ansible?
What is a Continuous integration?
What is a Continuous delivery?
How we make use of our ansible script reusable or redistributable?
What are the ask_pass and ask_sudo_pass?
Can you explain Ansible Playbooks?
How ansible is executed just by YAML script?
How to View the Contents of an Encrypted File
How to Edit an Encrypted File?
How will I start the services using ansible?
What are the Supported patterns in Ansible?
How to install Ansible on Linux?
What are the role dependencies?
How to use existing tasks in Ansible?
Which command is used to run an ansible playbook?
Can you keep data secret in the playbook?