2017-11-30 16 views
0

私は作業中です。プレイブックを使用してAzureインスタンスを作成することはできません。以下のエラーが表示されます。作成のためのプレイブックを作成するAzureインスタンス

[WARNING]: Found both group and host with same name: localhost 

[DEPRECATION WARNING]: azure is kept for backwards compatibility but usage is discouraged. The module documentation details page may explain more about this 
rationale.. This feature will be removed in a future release. Deprecation warnings can be disabled by setting deprecation_warnings=False in ansible.cfg. 

PLAY [localhost] ******************************************************************************************************************************************** 

TASK [create VM] ******************************************************************************************************************************************** 
fatal: [localhost]: FAILED! => {"changed": false, "failed": true, "msg": "Unsupported parameters for (azure) module: Subscription_ID Supported parameters include: auto_updates,enable_winrm,endpoints,hostname,image,location,management_cert_path,name,os_type,password,role_size,ssh_cert_path,state,storage_account,subscription_id,user,virtual_network_name,wait,wait_timeout,wait_timeout_redirects"} 
     to retry, use: --limit @/etc/ansible/int.retry 

PLAY RECAP ************************************************************************************************************************************************** 
localhost     : ok=0 changed=0 unreachable=0 failed=1 

答えて

0

あなたのためのエラーメッセージがあります:(空色)モジュール用

サポートされていないパラメータ:azureモジュールとazure guideのためのドキュメントを確認してください

をSubscription_ID。

あなたはENV変数を経由して資格情報を提供したい場合は、試してみ弱々しいことがあります。

- azure: 
    name: my-virtual-machine 
    role_size: Small 
    image: b39f27a8b8c64d52b05eac6a62ebad85__Ubuntu_DAILY_BUILD-precise-12_04_3-LTS-amd64-server-20131205-en-us-30GB 
    ... 
    environment: 
    AZURE_SUBSCRIPTION_ID: xxxxx 

しかし、あなたはあなたの脚本外紺碧のガイドとセットアップの資格情報に従ってください。

+0

お寄せいただきありがとうございます –

関連する問題