disable.yml 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. ---
  2. - when: r_openshift_excluder_verify_upgrade
  3. block:
  4. - name: Include verify_upgrade.yml when upgrading
  5. import_tasks: verify_upgrade.yml
  6. # unexclude the current openshift/origin-excluder if it is installed so it can be updated
  7. - name: Disable excluders before the upgrade to remove older excluding expressions
  8. import_tasks: unexclude.yml
  9. vars:
  10. # before the docker excluder can be updated, it needs to be disabled
  11. # to remove older excluded packages that are no longer excluded
  12. unexclude_docker_excluder: "{{ r_openshift_excluder_enable_docker_excluder }}"
  13. unexclude_openshift_excluder: "{{ r_openshift_excluder_enable_openshift_excluder }}"
  14. # Install any excluder that is enabled
  15. - name: Include install.yml
  16. import_tasks: install.yml
  17. # And finally adjust an excluder in order to update host components correctly. First
  18. # exclude then unexclude
  19. - name: Include exclude.yml
  20. import_tasks: exclude.yml
  21. vars:
  22. # Enable the docker excluder only if it is overridden
  23. # BZ #1430612: docker excluders should be enabled even during installation and upgrade
  24. exclude_docker_excluder: "{{ r_openshift_excluder_enable_docker_excluder }}"
  25. # excluder is to be disabled by default
  26. exclude_openshift_excluder: false
  27. # All excluders that are to be disabled are disabled
  28. - name: Include unexclude.yml
  29. import_tasks: unexclude.yml
  30. vars:
  31. # If the docker override is not set, default to the generic behaviour
  32. # BZ #1430612: docker excluders should be enabled even during installation and upgrade
  33. unexclude_docker_excluder: false
  34. # disable openshift excluder is never overridden to be enabled
  35. # disable it if the docker excluder is enabled
  36. unexclude_openshift_excluder: "{{ r_openshift_excluder_enable_openshift_excluder }}"