# condition and variable are not working with multiple scripts

**URL:** <https://forum.ansible.com/t/condition-and-variable-are-not-working-with-multiple-scripts/27708>\
**Category:** AWX Project\
**Tags:** awx\
**Created:** [June 5, 2018, 9:50am UTC](https://forum.ansible.com/t/condition-and-variable-are-not-working-with-multiple-scripts/27708 "2018-06-05T09:50:57Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sanjeev\_Mishra](https://avatars.discourse-cdn.com/v4/letter/s/ea666f/32.png) [@Sanjeev\_Mishra](https://forum.ansible.com/u/Sanjeev_Mishra)\
**Post date:** [June 5, 2018, 9:50am UTC](https://forum.ansible.com/t/condition-and-variable-are-not-working-with-multiple-scripts/27708/1 "2018-06-05T09:50:57Z")

</div>

SSH password:  
[WARNING]: While constructing a mapping from  
/var/lib/awx/projects/MM/AppUpdate.yml, line 18, column 6, found a duplicate  
dict key (command). Using last defined value only.  
[WARNING]: While constructing a mapping from  
/var/lib/awx/projects/MM/AppUpdate.yml, line 18, column 6, found a duplicate  
dict key (when). Using last defined value only.  
[WARNING]: While constructing a mapping from  
/var/lib/awx/projects/MM/AppUpdate.yml, line 29, column 6, found a duplicate  
dict key (command). Using last defined value only.  
[WARNING]: While constructing a mapping from  
/var/lib/awx/projects/MM/AppUpdate.yml, line 29, column 6, found a duplicate  
dict key (when). Using last defined value only.  
[WARNING]: While constructing a mapping from  
/var/lib/awx/projects/MM/AppUpdate.yml, line 42, column 6, found a duplicate  
dict key (command). Using last defined value only.  
[WARNING]: While constructing a mapping from  
/var/lib/awx/projects/MM/AppUpdate.yml, line 42, column 6, found a duplicate  
dict key (when). Using last defined value only.  
PLAY [Application Update] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*  
TASK [Gathering Facts] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*  
ok: [10.61.251.51]  
TASK [Mount DVD read-only] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*  
ok: [10.61.251.51]  
TASK [Manager Update] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*  
skipping: [10.61.251.51]  
TASK [debug] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*  
ok: [10.61.251.51] =\> {  
“out.stdout\_lines”: “VARIABLE IS NOT DEFINED!”  
}  
TASK [FEM Server Server1 Update] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*  
skipping: [10.61.251.51]  
TASK [debug] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*  
ok: [10.61.251.51] =\> {  
“out.stdout\_lines”: “VARIABLE IS NOT DEFINED!”  
}  
TASK [OLM Server SERVER Update] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*  
skipping: [10.61.251.51]  
TASK [debug] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*  
ok: [10.61.251.51] =\> {  
“out.stdout\_lines”: “VARIABLE IS NOT DEFINED!”  
}  
PLAY RECAP \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*  
10.61.251.51 : ok=5 changed=0 unreachable=0 failed=0

BACK TO TOP  
About

> **(attachments)**
>
> [playbook.txt](https://forum.ansible.com/uploads/short-url/za8jT5eQLcbNwZKeUiIjy0E3fqP.txt) (1.78 KB)
