ITIA Logs
You declare the desired end state; the tool checks the current state and only changes what differs, then stops.
* The tool gathers facts first and only converges when the current state differs from the desired one. *
Define the end state. For example: "a web server is installed...
Q Why is Ansible described as "the language of DevOps"?
Because a playbook is readable by everyone along the path from development to production, so dev/test, QA, operations, management and outsourcers all work from the same document.
* Every role from development to production reads and runs the same playbook. *
A playbook is a numb...
Q What is a dynamic inventory, and why is it useful?
An inventory that is generated at run time from an external source (a cloud API, a CMDB, a virtualisation platform) instead of being typed into a static file.
An inventory is the list of hosts Ansible manages, organised into groups. It can be:
static: a text file you maintain by...
Q What is the difference between an Ansible module and an Ansible plugin?
Modules are the units of work that tasks run, usually on the managed host. Plugins extend Ansible itself on the control node, for example how it connects, where it gets its inventory, or how it shows output.
Modules do the actual configuration work: package, copy, service, user....
Q What are Ansible Content Collections, and why were modules moved into them?
Collections are packages that bundle modules, plugins and roles. Modules used to all live inside Ansible itself, which became unmanageable, so they were split into separate collections and ansible-core keeps only ansible.builtin.
Historically, thousands of modules for every cloud...
Q What does a Windows managed host need so that Ansible can manage it?
PowerShell 3.0 or later (current Ansible releases require 5.1), PowerShell remoting configured (WinRM), and .NET Framework 4.0 or later. Python is not needed.
Windows modules (listed in the Windows section of the Ansible module index, e.g. win_package, win_service) are written in...
Q What three problems come from administering systems by hand with checklists and memorised routines?
Error-prone: a person can skip a step or run one by mistake.
Little evidence: hard to prove the steps were done correctly or had the intended result.
Inconsistency: servers managed independently drift apart in their configuration.
For many years system administration meant clic...
Q Where does Ansible fit in a CI/CD pipeline?
In the CD (continuous delivery/deployment) part: after CI has built and tested the code, Ansible deploys it through review, staging and production.
* CI builds and tests the code; Ansible does the CD half, deploying through review, staging and production. *
A typical pipeline, f...
Q What does it mean that Ansible is push-based, and how does that differ from pull-based tools?
In Ansible the central control node starts the communication and pushes configuration to the nodes. In pull-based tools, an agent on each node regularly fetches its configuration from a server.
* With push, changes apply when the admin runs the playbook; with pull, at each agent...
Q What are the main parts of Ansible's automation engine, and what flows into and out of it?
The engine has an inventory, modules, plugins and an API. Users and playbooks feed it, as do cloud and CMDB sources. It acts on hosts and network devices.
* Clouds and CMDBs supply host information, users run playbooks, and the engine puts hosts and network devices into the desc...