Ansible Ignore_Unreachable is not working

2019-07-28 20:57发布

问题:

Hoppy holidays all,

I am trying to create a job that runs a yum command on all of my servers in an environment. That part is complete however I am looking to make the job continue running even if I run into UNREACHABLE errors.

Here is my task:

- name: "remove {{ service_to_uninstall_name }} packages"
  yum:
    name: "{{ service_to_uninstall_name }}"
    state: absent
  ignore_unreachable: true
  ignore_errors: true