OS family
A fact that groups operating systems by their lineage, such as Debian for Debian and Ubuntu, or RedHat for Red Hat Enterprise Linux and Fedora.
In more detail
Conditions test it to choose package names or file paths that differ between families, for example when: ansible_facts.os_family == 'Debian'. Relying on the family rather than the exact distribution keeps plays shorter.
Related terms
- fact — A variable Ansible discovers about a host itself, such as its operating system, host name, memory or network addresses.
- when condition — A task keyword holding an expression; the task runs on a host only if the expression is true there, and is reported as skipped otherwise.
- Debian — A long-established, community-run Linux distribution known for stability, used as the base of many images.
- Linux distribution — A complete operating system built around the Linux kernel, such as Debian, Ubuntu or Alpine Linux.
Taught in
- Your First Ad Hoc Command — Ansible Configuration Management at Scale
- Gathering Facts — Ansible Configuration Management at Scale
- Conditionals — Ansible Configuration Management at Scale