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.
Question:- What Is A Handler?
Answer:- Handlers are similar to regular tasks in an Ansible playbook (see Tasks), except that they are only executed if the Task contains the notify keyword and also indicates that something changed.
Question:- What Do Host Vars Do?
Answer:- A directory known as host vars the inventory file can contain YAML files labeled after every hostname in the inventory file, just like Group s3eVars.
Question:- What Is Idempotency?
Answer:- If the result of performing an operation once is identical to the result of performing it repeatedly without any external influence, it is said to be idempotent.
Question:- What Is The The Language Used In The Ansible Template Module?
Answer:- Ansibles template module uses Jinja2 as its choice of templating language. Its a very basic Python template language that’s both legible and simple to write.
Question:- What Is Lazy Evaluation?
Answer:- Ansible evaluates any variables in playbook content at the very last second, which means that if you specify a data structure, that structure can specify variable values inside it.
Question:- What Does Lookup Plugin Do?
Answer:- A lookup plugin is a way to import data from the right into Ansible. Lookup plugins are just an offshoot of Jinja2 that can be used in templates, such as lookup{{ lookup(‘file’,’/path/to/file’) }}. This is how features like with_items are executed. There are also lookup plugins for querying DNS records, environment variables, key-value records, and file that will load data from a file.
Question:- Explain The Use Of Limit Groups.
Answer:- The commands can be restricted to a subset of hosts by passing –limit the group to ansible or a playbook. This could be used, for example, to execute a playbook that usually addresses an entire range of servers to a single server.
Question:- What Is A Pull Mode?
Answer:- When you want nodes to check in every few minutes on a specific schedule, you can use pull mode. It works with the ansible pull program and can also be configured/or reconfigured with a push-mode playbook.
Question:- What Is A Pull Mode?
Answer:- When you want nodes to check in every few minutes on a specific schedule, you can use pull mode. It works with the ansible pull program and can also be configured/or reconfigured with a push-mode playbook.
Question:- What Is A Push Mode?
Answer:- Ansible runs in push mode by default, giving it complete authority when it communicates with every system. Ansible can operate nodes through intricate orchestration procedures without having to wait for them to check-in, while using push mode.
Question:- Define Register Variable.
Answer:- Ansible register allows you to save the output of a task’s execution in a variable. This is a significant feature because the output varies by the remote host, and we can use conditions loops to perform other tasks based on it. Furthermore, each register value remains valid throughout the execution of the playbook.
