Ansible Azure模块

时间:2019-01-10 11:20:30

标签: ansible azure-devops

我正在尝试使用Ansible azure_rm_webapp模块将Web应用程序部署到Azure PaaS。

但是,当尝试执行剧本时,出现以下错误:

错误:

> fatal: [localhost]: FAILED! => {"changed": false, "module_stderr": "No
> handlers could be found for logger
> \"msrestazure.azure_active_directory\"\nTraceback (most recent call
> last):\n  File
> \"/home/***/.ansible/tmp/ansible-tmp-1547107411.49-64152490850781/AnsiballZ_azure_rm_webapp.py\",
> line 113, in <module>\n    _ansiballz_main()\n  File
> \"/home/***/.ansible/tmp/ansible-tmp-1547107411.49-64152490850781/AnsiballZ_azure_rm_webapp.py\",
> line 105, in _ansiballz_main\n    invoke_module(zipped_mod, temp_path,
> ANSIBALLZ_PARAMS)\n  File
> \"/home/***/.ansible/tmp/ansible-tmp-1547107411.49-64152490850781/AnsiballZ_azure_rm_webapp.py\",
> line 48, in invoke_module\n    imp.load_module('__main__', mod,
> module, MOD_DESC)\n  File
> \"/tmp/ansible_azure_rm_webapp_payload_f_xPB0/__main__.py\", line
> 1011, in <module>\n    \n  File
> \"/tmp/ansible_azure_rm_webapp_payload_f_xPB0/__main__.py\", line
> 1007, in main\n    \n  File
> \"/tmp/ansible_azure_rm_webapp_payload_f_xPB0/__main__.py\", line 499,
> in __init__\n    \n  File
> \"/tmp/ansible_azure_rm_webapp_payload_f_xPB0/ansible_azure_rm_webapp_payload.zip/ansible/module_utils/azure_rm_common.py\",
> line 308, in __init__\n  File
> \"/tmp/ansible_azure_rm_webapp_payload_f_xPB0/__main__.py\", line 521,
> in exec_module\n    \n  File
> \"/tmp/ansible_azure_rm_webapp_payload_f_xPB0/__main__.py\", line 841,
> in get_webapp\n    \nAttributeError: 'NoneType' object has no
> attribute 'name'\n", "module_stdout": "", "msg": "MODULE FAILURE\nSee
> stdout/stderr for the exact error", "rc": 1}

Ansible版本:2.7.5 msrestazure版本:0.4.34

有人可以在这里为我提供解决方案吗?

0 个答案:

没有答案