Parcourir la source

Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1474246

Use absolute path when executing excluder as it's used when checking for excluder.
Sergi Jimenez il y a 7 ans
Parent
commit
eca69d8086
1 fichiers modifiés avec 2 ajouts et 2 suppressions
  1. 2 2
      roles/openshift_excluder/tasks/exclude.yml

+ 2 - 2
roles/openshift_excluder/tasks/exclude.yml

@@ -5,7 +5,7 @@
   register: docker_excluder_stat
 
 - name: Enable docker excluder
-  command: "{{ r_openshift_excluder_service_type }}-docker-excluder exclude"
+  command: "/sbin/{{ r_openshift_excluder_service_type }}-docker-excluder exclude"
   when:
   - r_openshift_excluder_enable_docker_excluder | bool
   - docker_excluder_stat.stat.exists
@@ -16,7 +16,7 @@
   register: openshift_excluder_stat
 
 - name: Enable openshift excluder
-  command: "{{ r_openshift_excluder_service_type }}-excluder exclude"
+  command: "/sbin/{{ r_openshift_excluder_service_type }}-excluder exclude"
   when:
   - r_openshift_excluder_enable_openshift_excluder | bool
   - openshift_excluder_stat.stat.exists