#! /usr/bin/env ansible-playbook --- - name: "TestPlay" gather_facts: true become: false hosts: localhost connection: local tasks: - debug: msg: "Hello World" - debug: var: ansible_host - debug: var: playbook_dir - debug: msg: "Lalaalalala" - debug: var: ansible_host - debug: msg: "'{{ lookup('ansible.builtin.env', 'test') }}'"