2017-11-30 5 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.

- 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 

을하지만 당신은 당신의 작전 외부 푸른 가이드 및 설치 자격 증명을 따라야합니다 : 당신은 ENV 변수를 통해 자격 증명을 제공하려면

, 당신은 시도 완 수 있습니다.

+0

제안 해 주셔서 감사합니다. –