---
- name: Remove package 'java-1.7.0-openjdk'
  yum: pkg=java-1.7.0-openjdk state=absent
  when: not java_install|success
  ignore_errors: yes
  sudo: yes

---
- name: Remove package 'java-1.7.0-openjdk'
  yum: pkg=java-1.7.0-openjdk state=absent
  when: not java_install|skipped
  ignore_errors: yes
  sudo: yes

Fix removal of jdk package.
Fix removal of jdk package.
