Puppet Enterprise puts two types of automation in your hands: desired state automation and task-based automation, while Ansible offers only task-based automation. When it comes to enforcing compliance with security and operations policies for thousands of systems, desired state automation is simpler, more reliable, and ultimately less expensive than task automation.