What is Ansible and what is it used for?
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.
Filtering by topic #devops · clear
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.
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.
import_playbook, import_tasks and include_tasks do different jobs. See which one your site.yml needs, and prove it with ansible-playbook --list-tasks.
Terraform creates the VPS, Ansible configures it. The real split, why provisioners fight both tools, the handoff commands, and when you need only Ansible.
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.