Ansible: ignore unreachable hosts
Ansible treats an unreachable host differently from a failed task. Use ignore_unreachable, serial and max_fail_percentage, and still see what was missed.
Filtering by topic #ansible · clear
Ansible treats an unreachable host differently from a failed task. Use ignore_unreachable, serial and max_fail_percentage, and still see what was missed.
Ubuntu and Rocky give you four ways to get Ansible. Pick by the Python on your managed hosts, since current ansible-core does not support Ubuntu 20.04 or EL8.
Install Ansible with pipx on Ubuntu 24.04, write an inventory and a first playbook that hardens a fresh VPS, plus fixes for Permission denied and sudo errors.
import_playbook, import_tasks and include_tasks do different jobs. See which one your site.yml needs, and compare their task listings before a run.
Learn what Ansible facts cost, when gather_facts: false is the right call, and how gather_subset and JSON fact caching cut the wait on every run.
Yes. ansible-core and the community package are GPL with no node or seat limits. See what Red Hat charges for, and what the AWX release pause means for you.
Your Ansible inventory decides which host gets which variable: INI and YAML forms, groups, group_vars, host_vars, connection settings and precedence.
Keep passwords and API tokens in a playbook repo safely: encrypt a vars file or one inline string, split staging from production, and rekey cleanly.
Terraform creates the VPS, Ansible configures it. The real split, why provisioners fight both tools, the handoff commands, and when you need only Ansible.
Gate the reboot on evidence the host reports: the Ubuntu marker file, the Red Hat exit code, then reboot in slices so the whole fleet stays up.
The Ansible modules a VPS admin needs, grouped by job: packages, files, users and commands. Read the docs with ansible-doc, then run one idempotent playbook.
Render an nginx config from a Jinja2 template, notify a handler so it reloads only on a real change, then run the play twice to prove idempotence.
Ansible pushes over SSH, Chef and Puppet run agents that pull. Who owns each tool now, which builds are still free, and nginx set up in all three.
An idempotent Ansible playbook that installs Zabbix server on Ubuntu 24.04, a vaulted database password that actually wins, and agents across your inventory.
Ansible configures many servers at once over SSH, with no agent to install. Learn how it works and when a plain shell script is still the better choice.
Yes, if you know Linux and SSH. See what each Ansible stage needs, where people get stuck, how long it may take, and who should skip it for now.
Run one Ansible task on many servers without writing a playbook. Learn host patterns, become, forks and dry runs, plus the modules a VPS admin uses every week.
Why -k and -K ask for different passwords, and why -e passes false as a string. Plus -l, --tags, --list-tasks and --start-at-task, for ansible-core 2.21.5.
Ansible check mode explained: what --check and --diff really prove, and where a dry run gives you a wrong answer before you apply for real.
At default verbosity a command task shows only ok or changed. Run with -v or use register and debug to see its output, and keep secrets out of logs.
SSH config, tmux, Ansible, Uptime Kuma, Zabbix and Webmin, ranked by how many servers you have: what each replaces, setup cost in minutes, the one gotcha.
When a flat Ansible playbook is enough and when a role earns its directories: the role layout, ansible-galaxy init, role calls, and variable precedence.