Commit Graph

4 Commits (master)

Author SHA1 Message Date
Dustin 60fa380e5d dyngroups: Always run all tasks
Adding the `always` tag to the tasks in `dyngroups.yml` ensures that
hosts will get added to the appropriate groups dynamically, even when
running a subset of tasks by targeting specific tags.  Ansible will
always run tasks with this tag when a tag selection is passed to
`ansible-playbook`.
2024-01-09 18:18:34 -06:00
Dustin 4a1e961d57 dyngroups: Also group by distribution and version
Adding dynamic groups for speciffic Linux distributions and versions
thereof so we can apply settings based on those properties.
2022-12-19 10:20:09 -06:00
Dustin 00d30a67fb base: Enable serial console on KVM VMs
Occasionally, VMs running on the main libvirt VM hosts will freeze or
otherwise become unavailable via network.  Sometimes, when this happens,
their normal consoles are unresponsive as well.  Having the serial
console available as a fallback can sometimes be helpful in recovering
from such situations.

To ensure the serial console is available on all VMs, we use a "dynamic"
group, based on the virtualization type and role of the managed node.
All KVM-based virtual machines are included in a group named *kvm-vm*.
A play in `base.yml` applies the *serial-console* role to members of
this group.
2021-10-16 14:34:51 -05:00
Dustin 7de51f4bc5 dyngroups: Dynamic host classification
The `dyngroups.yml` playbook groups hosts dynamically based on gathered
facts. Currently, the `ansible_os_family` fact is used to group hosts by
Linux distribution.
2018-03-27 20:44:43 -05:00