diff --git a/tests/installed/destructive-ansible.yml b/tests/installed/destructive-ansible.yml
index 12ee5d52..a0e69aa1 100644
--- a/tests/installed/destructive-ansible.yml
+++ b/tests/installed/destructive-ansible.yml
@@ -8,6 +8,7 @@
     use_git_build: True
     tests: "."
   tasks:
+    - import_tasks: tasks/disable-all-rpmmd-repos.yml
     - import_tasks: tasks/query-host.yml
     - set_fact:
         rpmostree_initial_deployment: "{{ rpmostree_status[\"deployments\"][0] }}"
diff --git a/tests/installed/tasks/disable-all-rpmmd-repos.yml b/tests/installed/tasks/disable-all-rpmmd-repos.yml
new file mode 100644
index 00000000..b4f2a074
--- /dev/null
+++ b/tests/installed/tasks/disable-all-rpmmd-repos.yml
@@ -0,0 +1,5 @@
+- name: Disable all rpmmd repos
+  shell: |
+    for x in /etc/yum.repos.d/*.repo; do
+      sed -i -e 's,^enabled=,enabled=0,g' $x
+    done