diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 79bc605f7b1f4cbf8be6b1c7f5a62dd0d9f399f5..13f78151bc9d9676662ca61388c223e4a000a8d7 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -9,6 +9,7 @@
 # You should have received a copy of the GNU General Public License along with the Webarchitects Apache Ansible role. If not, see <https://www.gnu.org/licenses/>.
 ---
 variables:
+  ANSIBLE_ANY_ERRORS_FATAL: "1"
   ANSIBLE_CALLBACK_RESULT_FORMAT: "yaml"
   ANSIBLE_DEFAULT_VERBOSITY: "1"
   ANSIBLE_DIFF_ALWAYS: "1"
diff --git a/molecule/default/molecule.yml b/molecule/default/molecule.yml
index 5b17fe98454b66020b45b49c683dc4cacbafccd7..777ae284ca1e981c0b25e11dd1415227ca627407 100644
--- a/molecule/default/molecule.yml
+++ b/molecule/default/molecule.yml
@@ -14,6 +14,12 @@ platforms:
   - name: instance
 provisioner:
   name: ansible
+  config_options:
+    defaults:
+      ansible_managed: Ansible managed
+      duplicate_dict_key: error
+      error_on_undefined_vars: true
+      inject_facts_as_vars: false
   options:
     D: true
 verifier: