簡體   English   中英

使用Ansible在Azure中創建VM時發生錯誤

[英]Error occuer when creating a VM in azure using ansible

我正在使用azure = 0.11.1並也在1.0.1版本中嘗試過並執行它,但是我遇到了以下提到的錯誤,以下是playbook的提及:

azurevm_yml

--- - local_action: module: "azure" name: 'vm_ubuntu1' role_size: Small image: '5112500ae3b842c8b9c604889f8753c3__OpenLogic-CentOS-67-20150815' password: "admin12345@" location: 'East US 2' user: admin wait: yes subscription_id: 'xxxxxxxxxxxxxx' management_cert_path: '/ansible-pbook/xxxx.pem' storage_account: 'storageacc01' endpoints: '22,8080,80' register: azure_vm

錯誤:

root@xxxxx:/ansible-pbook# ansible-playbook azure_vm.yml ERROR: password is not a legal parameter of an Ansible Play

請建議我...

任務的正確格式如下所示:

- local_action: azure
    name='vm_ubuntu1'
    role_size=Small
    image='5112500ae3b842c8b9c604889f8753c3__OpenLogic-CentOS-67-20150815'
    password="admin12345@"
    location='East US 2'
    user=admin
    wait=yes
    subscription_id='xxxxxxxxxxxxxx'
    management_cert_path='/ansible-pbook/xxxx.pem'
    storage_account='storageacc01'
    endpoints='22,8080,80'
  register: azure_vm

傳遞給模塊的所有參數都應采用key=value的格式,而任務/操作本身的屬性(如registertagsignore_errors等)應采用attribute: value的格式

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM