diff --git a/lib/ansible/cache/jsonfile.py b/lib/ansible/cache/jsonfile.py index a3768209bca..1ccf9b4a558 100644 --- a/lib/ansible/cache/jsonfile.py +++ b/lib/ansible/cache/jsonfile.py @@ -19,6 +19,11 @@ import os import time import errno +try: + import json +except ImportError: + import simplejson as json + from ansible import constants as C from ansible import utils from ansible.cache.base import BaseCacheModule