Any idea/comments why this doesn't work?

Installed aversion -  2.9.0


Playbook : test.yml

-
--
  - name: substitute vars
    hosts: localhost
    gather_facts: False

    vars_files:
      - "vars.yml"

    tasks:
      - name: print vars
        debug: msg="{{ vars.a }}"





vars.yml


a: "{{ lookup('env', 'HOME') }}"



Output : 


TASK [print vars] 
*****************************************************************************************************************************************************************************
ok: [localhost] => {


    "msg": "{{ lookup('env', 'HOME') }}"


}


Why it doesn't print the HOME env value?


Thanks

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/cbacd17d-62db-494d-a539-fb2ace9dbfbb%40googlegroups.com.

Reply via email to