Hello,
I am running CentOS 7 and attempting to install multiple packages via yum module via a list. My playbook looks like so:
- hosts: lab
remote_user: ansible
tasks:- name: Install list of packages
yum:
name:
- tree
- pstree
state: present
- name: Install list of packages
And this is the output I get:
The problem is that I don't have the repo for pstree configured so it's failing on that, but I do have the repo configured for tree yet the entire playbook fails. In other words, ansible fails to continue past pstree and continue on with packages that will for sure work. It's as if Ansible retroactively removes output from successful packages if it discovers that one package that comes after has error.
Why can't yum module just ignore packages that won't work and continue on? If i had many more packages this would be even worse.
I looked at yum module documentation and I don't see anything that will help. I found ignore_errors and I set it to yes but that did not help. Any ideas why this is happening and how this can be fixed? Barring me making a mistake, this seems like a limitation of Ansible.