Interview Prep/Ansible/Fundamentals and Architecture

Is Ansible push-based or pull-based?

BeginnerConceptFundamentals and Architecture
Answer

Push by default: the control node initiates the connection and pushes tasks to the nodes when you run a playbook. There is no continuous reconciliation, so drift is only fixed when you run again.

Pull is possible with ansible-pull, which runs on each node, clones a Git repo and applies a local playbook, usually from cron or a systemd timer. In production we use it for autoscaled instances that must configure themselves at boot.

All Ansible questions Roadmap: Ansible

More on Fundamentals and Architecture