Hi all,
I run efs playbook ,but show error message, I don’t what happen
I run other machine is ok , it’s python version problem?
The full traceback is:
Traceback (most recent call last):
File “/root/.ansible/tmp/ansible-tmp-1597129962.45-1441-139369601493398/AnsiballZ_efs.py”, line 102, in
_ansiballz_main()
File “/root/.ansible/tmp/ansible-tmp-1597129962.45-1441-139369601493398/AnsiballZ_efs.py”, line 94, in _ansiballz_main
invoke_module(zipped_mod, temp_path, ANSIBALLZ_PARAMS)
File “/root/.ansible/tmp/ansible-tmp-1597129962.45-1441-139369601493398/AnsiballZ_efs.py”, line 40, in invoke_module
runpy.run_module(mod_name=‘ansible.modules.cloud.amazon.efs’, init_globals=None, run_name=‘main’, alter_sys=True)
File “/usr/lib/python2.7/runpy.py”, line 188, in run_module
fname, loader, pkg_name)
File “/usr/lib/python2.7/runpy.py”, line 82, in _run_module_code
mod_name, mod_fname, mod_loader, pkg_name)
File “/usr/lib/python2.7/runpy.py”, line 72, in _run_code
exec code in run_globals
File “/tmp/ansible_efs_payload_0gaJT5/ansible_efs_payload.zip/ansible/modules/cloud/amazon/efs.py”, line 765, in
File “/tmp/ansible_efs_payload_0gaJT5/ansible_efs_payload.zip/ansible/modules/cloud/amazon/efs.py”, line 746, in main
File “/tmp/ansible_efs_payload_0gaJT5/ansible_efs_payload.zip/ansible/modules/cloud/amazon/efs.py”, line 400, in create_file_system
File “/tmp/ansible_efs_payload_0gaJT5/ansible_efs_payload.zip/ansible/modules/cloud/amazon/efs.py”, line 345, in get_file_system_state
File “/tmp/ansible_efs_payload_0gaJT5/ansible_efs_payload.zip/ansible/modules/cloud/amazon/efs.py”, line 672, in first_or_default
File “/tmp/ansible_efs_payload_0gaJT5/ansible_efs_payload.zip/ansible/modules/cloud/amazon/efs.py”, line 629, in iterate_all
File “/usr/lib/python2.7/dist-packages/botocore/client.py”, line 316, in _api_call
return self._make_api_call(operation_name, kwargs)
File “/usr/lib/python2.7/dist-packages/botocore/client.py”, line 622, in _make_api_call
operation_model, request_dict, request_context)
File “/usr/lib/python2.7/dist-packages/botocore/client.py”, line 641, in _make_request
return self._endpoint.make_request(operation_model, request_dict)
File “/usr/lib/python2.7/dist-packages/botocore/endpoint.py”, line 102, in make_request
return self._send_request(request_dict, operation_model)
File “/usr/lib/python2.7/dist-packages/botocore/endpoint.py”, line 132, in _send_request
request = self.create_request(request_dict, operation_model)
File “/usr/lib/python2.7/dist-packages/botocore/endpoint.py”, line 116, in create_request
operation_name=operation_model.name)
File “/usr/lib/python2.7/dist-packages/botocore/hooks.py”, line 356, in emit
return self._emitter.emit(aliased_event_name, **kwargs)
File “/usr/lib/python2.7/dist-packages/botocore/hooks.py”, line 228, in emit
return self._emit(event_name, kwargs)
File “/usr/lib/python2.7/dist-packages/botocore/hooks.py”, line 211, in _emit
response = handler(**kwargs)
File “/usr/lib/python2.7/dist-packages/botocore/signers.py”, line 90, in handler
return self.sign(operation_name, request)
File “/usr/lib/python2.7/dist-packages/botocore/signers.py”, line 160, in sign
auth.add_auth(request)
File “/usr/lib/python2.7/dist-packages/botocore/auth.py”, line 357, in add_auth
raise NoCredentialsError
botocore.exceptions.NoCredentialsError: Unable to locate credentials
fatal: [localhost]: FAILED! => {
“changed”: false,
“module_stderr”: “Traceback (most recent call last):\n File "/root/.ansible/tmp/ansible-tmp-1597129962.45-1441-139369601493398/AnsiballZ_efs.py", line 102, in \n _ansiballz_main()\n File "/root/.ansible/tmp/ansible-tmp-1597129962.45-1441-139369601493398/AnsiballZ_efs.py", line 94, in _ansiballz_main\n invoke_module(zipped_mod, temp_path, ANSIBALLZ_PARAMS)\n File "/root/.ansible/tmp/ansible-tmp-1597129962.45-1441-139369601493398/AnsiballZ_efs.py", line 40, in invoke_module\n runpy.run_module(mod_name=‘ansible.modules.cloud.amazon.efs’, init_globals=None, run_name=‘main’, alter_sys=True)\n File "/usr/lib/python2.7/runpy.py", line 188, in run_module\n fname, loader, pkg_name)\n File "/usr/lib/python2.7/runpy.py", line 82, in _run_module_code\n mod_name, mod_fname, mod_loader, pkg_name)\n File "/usr/lib/python2.7/runpy.py", line 72, in _run_code\n exec code in run_globals\n File "/tmp/ansible_efs_payload_0gaJT5/ansible_efs_payload.zip/ansible/modules/cloud/amazon/efs.py", line 765, in \n File "/tmp/ansible_efs_payload_0gaJT5/ansible_efs_payload.zip/ansible/modules/cloud/amazon/efs.py", line 746, in main\n File "/tmp/ansible_efs_payload_0gaJT5/ansible_efs_payload.zip/ansible/modules/cloud/amazon/efs.py", line 400, in create_file_system\n File "/tmp/ansible_efs_payload_0gaJT5/ansible_efs_payload.zip/ansible/modules/cloud/amazon/efs.py", line 345, in get_file_system_state\n File "/tmp/ansible_efs_payload_0gaJT5/ansible_efs_payload.zip/ansible/modules/cloud/amazon/efs.py", line 672, in first_or_default\n File "/tmp/ansible_efs_payload_0gaJT5/ansible_efs_payload.zip/ansible/modules/cloud/amazon/efs.py", line 629, in iterate_all\n File "/usr/lib/python2.7/dist-packages/botocore/client.py", line 316, in _api_call\n return self._make_api_call(operation_name, kwargs)\n File "/usr/lib/python2.7/dist-packages/botocore/client.py", line 622, in _make_api_call\n operation_model, request_dict, request_context)\n File "/usr/lib/python2.7/dist-packages/botocore/client.py", line 641, in _make_request\n return self._endpoint.make_request(operation_model, request_dict)\n File "/usr/lib/python2.7/dist-packages/botocore/endpoint.py", line 102, in make_request\n return self._send_request(request_dict, operation_model)\n File "/usr/lib/python2.7/dist-packages/botocore/endpoint.py", line 132, in _send_request\n request = self.create_request(request_dict, operation_model)\n File "/usr/lib/python2.7/dist-packages/botocore/endpoint.py", line 116, in create_request\n operation_name=operation_model.name)\n File "/usr/lib/python2.7/dist-packages/botocore/hooks.py", line 356, in emit\n return self._emitter.emit(aliased_event_name, **kwargs)\n File "/usr/lib/python2.7/dist-packages/botocore/hooks.py", line 228, in emit\n return self._emit(event_name, kwargs)\n File "/usr/lib/python2.7/dist-packages/botocore/hooks.py", line 211, in _emit\n response = handler(**kwargs)\n File "/usr/lib/python2.7/dist-packages/botocore/signers.py", line 90, in handler\n return self.sign(operation_name, request)\n File "/usr/lib/python2.7/dist-packages/botocore/signers.py", line 160, in sign\n auth.add_auth(request)\n File "/usr/lib/python2.7/dist-packages/botocore/auth.py", line 357, in add_auth\n raise NoCredentialsError\nbotocore.exceptions.NoCredentialsError: Unable to locate credentials\n”,
“module_stdout”: “”,
“msg”: “MODULE FAILURE\nSee stdout/stderr for the exact error”,
“rc”: 1
}