diff --git a/cloudinit/config/cc_ansible.py b/cloudinit/config/cc_ansible.py index f8ca29bd3111..9d0e1ffcdf95 100644 --- a/cloudinit/config/cc_ansible.py +++ b/cloudinit/config/cc_ansible.py @@ -136,7 +136,9 @@ def install(self, pkg_name: str): import pip # noqa: F401 except ImportError: self.distro.install_packages(self.distro.pip_package_name) - cmd = [sys.executable, "-m", "pip", "install"] + cmd = [ + sys.executable, "-m", "pip", "install", "--break-system-packages" + ] if self.run_user: cmd.append("--user") self.do_as([*cmd, "--upgrade", "pip"])