Question:- Define Ask_sudo_pass.
Answer:- It controls whether an Ansible playbook should ask for a sudo password by default, same as ask_pass. No is also the default option. ask_sudo_pass = true. Users with sudo passwords enabled on their platforms can modify this setting.
Question:- What Is Ask_vault_pass?
Answer:- This determines whether or not an Ansible playbook will ask for the vault password by default. No is the default option. ask_vault_pass = true
Question:- What Is Callback_plugin In Ansible?
Answer:- Ansible callbacks are bits of scripts that are executed when certain events occur, allowing notifications to be triggered.
Question:- Where Is Unit Testing Present In Ansible?
Answer:- Unit tests are located in the test/units directory. Its worth noting that the tests directory structure is similar to that of lib/ansible/.
Question:- What Command Would You Use To Install Ansible On CentOS?
Answer:- $ sudo yum install epel-release Then, install Ansible using yum $ sudo yum install ansible
Question:- What Is Async?
Answer:- Its a task thats set to run in the background instead of waiting for it to finish. Its better to start a process in async mode in case it takes longer than the SSH timeout. Async modes can be set to check for completion every several seconds or to fire and forget, in which case Ansible will not look up the task again and move on to the next step.
Question:- What Does The Connection Plugin Do?
Answer:- Ansible uses connection plugins to connect to target hosts and perform tasks on them. Ansible comes with a lot of connection plugins, but each host can only use one at a time. Most commonly used include SSH(Native), Paramiko SSH and local connection type.
Question:- What Is Diff Mode?
Answer:- Ansibles –diff playbook option can be used alone or in combination with –check. Any module that supports diff mode shows the changes made and when used with –check, it shows the changes that would have been made, when run in diff mode. Diff mode is mostly used in file manipulation modules (for instance, the template module).
Question:- What Is An Executor?
Answer:- It is a core Ansible software component that enables /usr/bin/ansible and coincides with every task execution in an ansible playbook. Although Ansible developers use the term executor it is not widely popular.
Question:- What Does Filter Plugin Do?
Answer:- Filter plugins can modify data. These enable the development of new Jinja2 filters, which are primarily useful to people who are already familiar with Jinja2 filters.
Question:- Explain The Use Of Forks.
Answer:- Ansible communicates with the remote nodes in parallel, and the level of parallel processing can be changed by passing –forks or editing the current configuration file.
Question:- What Does Gather_facts Do?
Answer:- What Does Gather_facts Do?
Question:- What Is Globbing?
Answer:- Globbing is a method of selecting a large number of hosts based on wildcards instead of the host’s or group’s specific names. For instance, you can use the wildcard ww* to find and match all servers that begin with the www.
Question:- What Do You Store In Group_vars?
Answer:- The group_vars/ files stay in the same directory as the inventory file, with a filename labeled after each group. This is a good place to store variables that are provided to a specific group, especially complicated data structures, so they don’t have to be included in the inventory file or playbook.
