# import\_playbook - Passing variables - error

**URL:** <https://forum.ansible.com/t/import-playbook-passing-variables-error/30406>\
**Category:** Ansible Developer\
**Created:** [May 23, 2019, 1:53pm UTC](https://forum.ansible.com/t/import-playbook-passing-variables-error/30406 "2019-05-23T13:53:08Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Geoff](https://avatars.discourse-cdn.com/v4/letter/g/a3d4f5/32.png) [@Geoff](https://forum.ansible.com/u/Geoff)\
**Post date:** [May 23, 2019, 1:53pm UTC](https://forum.ansible.com/t/import-playbook-passing-variables-error/30406/1 "2019-05-23T13:53:08Z")

</div>

I have a playbook called: **testing\_vars\_pass.yml**

It imports another playbook called: **testing\_vars\_call.yml**

The playbook **testing\_vars\_call.yml** expects a variable called: **myVar**

Below is the contents of each playbook …

$ cat **testing\_vars\_pass.yml**

---

<div class="post-metadata">

**Author:** ![FG1](https://avatars.discourse-cdn.com/v4/letter/f/bbce88/32.png) [@FG1](https://forum.ansible.com/u/FG1)\
**Post date:** [January 24, 2020, 6:58pm UTC](https://forum.ansible.com/t/import-playbook-passing-variables-error/30406/2 "2020-01-24T18:58:41Z")

</div>

I am facing same issue , Any leads ???

Regards

---

<div class="post-metadata">

**Author:** ![cassell](https://avatars.discourse-cdn.com/v4/letter/c/ecae2f/32.png) [@cassell](https://forum.ansible.com/u/cassell)\
**Post date:** [January 25, 2020, 2:58am UTC](https://forum.ansible.com/t/import-playbook-passing-variables-error/30406/3 "2020-01-25T02:58:12Z")

</div>

> I am facing same issue , Any leads ???

Could you be more specific? What exactly is the issue you're seeing? Playbooks? Commands you're using? Output?

In any case, this is definitely a better question for ansible-project@ list

The post below had lots of errors, including self referring variables, and lack if understanding variables scope [https://docs.ansible.com/ansible/latest/user\_guide/playbooks\_variables.html#scoping-variables](https://docs.ansible.com/ansible/latest/user_guide/playbooks_variables.html#scoping-variables)

V/r,  
James Cassell
