exclude.yml 870 B

12345678910111213141516171819202122232425262728
  1. ---
  2. - name: Check for docker-excluder
  3. stat:
  4. path: /sbin/{{ r_openshift_excluder_service_type }}-docker-excluder
  5. get_checksum: false
  6. get_attributes: false
  7. get_mime: false
  8. register: docker_excluder_stat
  9. - name: Enable docker excluder
  10. command: "/sbin/{{ r_openshift_excluder_service_type }}-docker-excluder exclude"
  11. when:
  12. - r_openshift_excluder_enable_docker_excluder | bool
  13. - docker_excluder_stat.stat.exists
  14. - name: Check for openshift excluder
  15. stat:
  16. path: /sbin/{{ r_openshift_excluder_service_type }}-excluder
  17. get_checksum: false
  18. get_attributes: false
  19. get_mime: false
  20. register: openshift_excluder_stat
  21. - name: Enable openshift excluder
  22. command: "/sbin/{{ r_openshift_excluder_service_type }}-excluder exclude"
  23. when:
  24. - r_openshift_excluder_enable_openshift_excluder | bool
  25. - openshift_excluder_stat.stat.exists