# Ansible playbook picks up old tasks when I invoke from shell script.

**URL:** <https://forum.ansible.com/t/ansible-playbook-picks-up-old-tasks-when-i-invoke-from-shell-script/24335>\
**Category:** Ansible Project\
**Created:** [April 27, 2017, 2:05am UTC](https://forum.ansible.com/t/ansible-playbook-picks-up-old-tasks-when-i-invoke-from-shell-script/24335 "2017-04-27T02:05:13Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Vaishoo](https://avatars.discourse-cdn.com/v4/letter/v/c5a1d2/32.png) [@Vaishoo](https://forum.ansible.com/u/Vaishoo)\
**Post date:** [April 27, 2017, 2:05am UTC](https://forum.ansible.com/t/ansible-playbook-picks-up-old-tasks-when-i-invoke-from-shell-script/24335/1 "2017-04-27T02:05:13Z")

</div>

HI All,  
I am invoking ansible command in the shell script and it does pick up only old tasks and does not pick up the updated task. What could be wrong? If I copy the same command from the script and run it is working fine.  
Any idea?  
Thanks,Vaishoo

0
