{{tag>ansible}} ====== ansible playbook examples ====== * {{ :wiki:ansible-plays:run-on-fewer.yml |Count Docker containers and execute tasks and/or roles on host with fewer containers }} * {{ :wiki:ansible-plays:run-variable-gt-than.yml |Run playbook only on hosts where variable is greater than}} ====== Tested on ====== * ansible [core 2.16.4] * Ansible community version 9.3.0 ====== See also ====== * [[wiki:ansible_debug_all_variables|Ansible debug all variables]] ====== References ====== * https://stackoverflow.com/questions/61391920/compare-the-output-of-a-command-in-multiple-hosts-and-run-subsequent-tasks-only