diff --git a/roles/bootstrap-os/tasks/bootstrap-centos.yml b/roles/bootstrap-os/tasks/bootstrap-centos.yml
index 142842b8eaf5ab2bf2cb443ee62d68cdd23c4a55..692fae8686bd415ebe2a1604f3611fbdf736404c 100644
--- a/roles/bootstrap-os/tasks/bootstrap-centos.yml
+++ b/roles/bootstrap-os/tasks/bootstrap-centos.yml
@@ -1,4 +1,11 @@
 ---
+- name: check if atomic host
+  stat:
+    path: /run/ostree-booted
+  register: ostree
+
+- set_fact:
+    is_atomic: "{{ ostree.stat.exists }}"
 
 - name: Check presence of fastestmirror.conf
   stat:
@@ -30,8 +37,12 @@
     packages:
       - libselinux-python
       - epel-release
+  when:
+    - not is_atomic
 
 - name: Install pip for bootstrap
   yum:
     name: python-pip
     state: present
+  when:
+    - not is_atomic