diff --git a/tasks/centos/main.yml b/tasks/centos/main.yml
index 7367dbab912f58e160439a8026c4726ebd541b3b..db779dbbad451920849e8df0be6507caacad80d3 100644
--- a/tasks/centos/main.yml
+++ b/tasks/centos/main.yml
@@ -5,3 +5,4 @@
     name: epel-release
     state: present
     update_cache: yes
+  when: apply_epel is defined and apply_epel