diff --git a/lib/ansible/cache/jsonfile.py b/lib/ansible/cache/jsonfile.py index 81918a2836b..3e037e414ad 100644 --- a/lib/ansible/cache/jsonfile.py +++ b/lib/ansible/cache/jsonfile.py @@ -20,6 +20,11 @@ import time import json 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