---
- hosts: all
  connection: local
  gather_facts: no
  tasks:
  - action: debug msg="$variable"

- hosts: all
  connection: local
  vars:
  - ugly: var
  gather_facts: no
  tasks:
  - action: debug msg="$variable"