# if one package fails all other non dependent packages installation fails in ansible

**URL:** <https://forum.ansible.com/t/if-one-package-fails-all-other-non-dependent-packages-installation-fails-in-ansible/25295>\
**Category:** Ansible Project\
**Created:** [August 20, 2017, 6:32pm UTC](https://forum.ansible.com/t/if-one-package-fails-all-other-non-dependent-packages-installation-fails-in-ansible/25295 "2017-08-20T18:32:13Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sameer\_Modak](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/sameer_modak/32/5180_2.png) [@Sameer\_Modak](https://forum.ansible.com/u/Sameer_Modak)\
**Post date:** [August 20, 2017, 6:32pm UTC](https://forum.ansible.com/t/if-one-package-fails-all-other-non-dependent-packages-installation-fails-in-ansible/25295/1 "2017-08-20T18:32:13Z")

</div>

TASK [get python-yum and python-curl] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*  
…ignoring  
failed: [192.168.211.131] (item=[u’python-pycurl’, u’git’, u’curl’, u’php5-common’, u’php5-cli’, u’php5-mysql’, u’php5-curl’, u’php5-gd’, u’php5-dev’, u’php5-mcrypt’, u’php-apc’, u’php-pear’, u’python-mysqldb’, u’mysql-server’]) =\> {“changed”: false, “failed”: true, “item”: [“python-pycurl”, “git”, “curl”, “php5-common”, “php5-cli”, “php5-mysql”, “php5-curl”, “php5-gd”, “php5-dev”, “php5-mcrypt”, “php-apc”, “php-pear”, “python-mysqldb”, “mysql-server”], “msg”: “No package matching ‘php5-common’ found available, installed or updated”, “rc”: 126, “results”: [“python-pycurl-7.19.0-17.el7.x86\_64 providing python-pycurl is already installed”, “git-1.8.3.1-5.el7.x86\_64 providing git is already installed”, “curl-7.29.0-25.el7.centos.x86\_64 providing curl is already installed”, “No package matching ‘php5-common’ found available, installed or updated”]}

---

<div class="post-metadata">

**Author:** ![Kai\_Stian\_Olstad](https://avatars.discourse-cdn.com/v4/letter/k/e19adc/32.png) [@Kai\_Stian\_Olstad](https://forum.ansible.com/u/Kai_Stian_Olstad)\
**Post date:** [August 25, 2017, 8:53pm UTC](https://forum.ansible.com/t/if-one-package-fails-all-other-non-dependent-packages-installation-fails-in-ansible/25295/2 "2017-08-25T20:53:16Z")

</div>

\<snip /\>

That's by design, this is one task and Ansible fails a entire task and not  
just part of it.  
If you need that feature you need to split it up in several tasks.
