12345678910111213141516171819202122232425262728 |
- ---
- - name: Check for docker-excluder
- stat:
- path: /sbin/{{ r_openshift_excluder_service_type }}-docker-excluder
- get_checksum: false
- get_attributes: false
- get_mime: false
- register: docker_excluder_stat
- - name: Enable docker excluder
- command: "/sbin/{{ r_openshift_excluder_service_type }}-docker-excluder exclude"
- when:
- - r_openshift_excluder_enable_docker_excluder | bool
- - docker_excluder_stat.stat.exists
- - name: Check for openshift excluder
- stat:
- path: /sbin/{{ r_openshift_excluder_service_type }}-excluder
- get_checksum: false
- get_attributes: false
- get_mime: false
- register: openshift_excluder_stat
- - name: Enable openshift excluder
- command: "/sbin/{{ r_openshift_excluder_service_type }}-excluder exclude"
- when:
- - r_openshift_excluder_enable_openshift_excluder | bool
- - openshift_excluder_stat.stat.exists
|