---
- name: Upgrade Device
hosts: all
gather_facts: no
connection: local
As far as I know, an Ansible Playbook is always executed by the managed hosts where the connection link between them and the control nodes is through SSH.
What does the 'connection' directive do exactly ?