Blob Blame History Raw
diff --git a/.config/requirements-lock.txt b/.config/requirements-lock.txt
index 5af77861..cf0bc2b2 100644
--- a/.config/requirements-lock.txt
+++ b/.config/requirements-lock.txt
@@ -1,10 +1,10 @@
 #
-# This file is autogenerated by pip-compile with Python 3.9
+# This file is autogenerated by pip-compile with Python 3.10
 # by the following command:
 #
 #    pip-compile --no-annotate --output-file=.config/requirements-lock.txt --resolver=backtracking --strip-extras --unsafe-package=ruamel-yaml-clib pyproject.toml
 #
-ansible-compat==3.0.2
+ansible-compat==4.0.2
 ansible-core==2.14.4
 arrow==1.2.3
 attrs==23.1.0
diff --git a/.config/requirements.in b/.config/requirements.in
index ce0cb9ae..d4bbe3a3 100644
--- a/.config/requirements.in
+++ b/.config/requirements.in
@@ -1,4 +1,4 @@
-ansible-compat >= 2.2.0, < 4.0.0
+ansible-compat >= 4.0.1
 ansible-core >= 2.12.10
 click >= 8.0, < 9
 click-help-colors >= 0.9
diff --git a/.config/requirements.txt b/.config/requirements.txt
index 2e1a36f1..5b8ef04d 100644
--- a/.config/requirements.txt
+++ b/.config/requirements.txt
@@ -5,7 +5,7 @@
 #    pip-compile --extra=docs --extra=test --no-annotate --output-file=.config/requirements.txt --resolver=backtracking --strip-extras pyproject.toml
 #
 ansi2html==1.8.0
-ansible-compat==3.0.2
+ansible-compat==4.0.2
 ansible-core==2.14.4
 ansible-lint==6.14.6
 arrow==1.2.3
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 55b0043e..6b9b8910 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -62,7 +62,7 @@ repos:
         entry: mypy src/
         pass_filenames: false
         additional_dependencies:
-          - ansible-compat>=2.2.0,<4.0.0
+          - ansible-compat>=4.0.1
           - click>=8.0.1
           - enrich>=1.2.7
           - importlib-metadata>=4.6.1
@@ -81,7 +81,7 @@ repos:
         args:
           - --output-format=colorized
         additional_dependencies:
-          - ansible-compat>=2.2.0,<4.0.0
+          - ansible-compat>=4.0.1
           - click
           - click-help-colors
           - cookiecutter
diff --git a/src/molecule/util.py b/src/molecule/util.py
index 66c7610c..56f9c0ac 100644
--- a/src/molecule/util.py
+++ b/src/molecule/util.py
@@ -146,7 +146,7 @@ def run_command(
     if debug:
         print_environment_vars(env)
 
-    result = app.runtime.exec(
+    result = app.runtime.run(
         args=args,
         env=env,
         cwd=cwd,