--- - hosts: localhost connection: local gather_facts: false tasks: - debug: msg="{{ lookup('env', 'FOO') }}"