diff --git a/ansible/roles/ceph/tasks/deploy.yml b/ansible/roles/ceph/tasks/deploy.yml
index 937c064ad405d5744bb1ce6b56aa50e953552f7f..39dc253203885919cd449528aefd5afc77525479 100644
--- a/ansible/roles/ceph/tasks/deploy.yml
+++ b/ansible/roles/ceph/tasks/deploy.yml
@@ -13,7 +13,9 @@
   when: inventory_hostname in groups['ceph-mgr']
 
 - include: start_nfss.yml
-  when: inventory_hostname in groups['ceph-nfs']
+  when:
+    - enable_ceph_nfs | bool
+    - inventory_hostname in groups['ceph-nfs']
 
 - include: bootstrap_osds.yml
   when: inventory_hostname in groups['ceph-osd']
diff --git a/ansible/roles/ceph/tasks/pull.yml b/ansible/roles/ceph/tasks/pull.yml
index bf59e2c88354596864d7a0605470578813d25628..017909cc5e3dbf1dacd002e6688909dd5c1a3ffb 100644
--- a/ansible/roles/ceph/tasks/pull.yml
+++ b/ansible/roles/ceph/tasks/pull.yml
@@ -43,4 +43,5 @@
     common_options: "{{ docker_common_options }}"
     image: "{{ ceph_nfs_image_full }}"
   when:
+    - enable_ceph_nfs | bool
     - inventory_hostname in groups['ceph-nfs']