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.
More on Fundamentals and Architecture
What is Ansible and what problem does it solve?BeginnerWhat does "agentless" mean in Ansible?BeginnerWhat are the requirements for the control node?BeginnerWhat does a managed node need?BeginnerWalk through what happens when you run `ansible-playbook site.yml`.IntermediateWhat is the difference between `ansible`, `ansible-core` and the `ansible` community package?Intermediate