exclude.yml 730 B

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