When I do:
- name: Create the Host VM
azure_rm_virtualmachine:
state: present
resource_group: '{{ cloud_tag }}'
name: '{{ cloud_tag }}-host'
vm_size: 'Standard_DS1_v2'
storage_account: '{{ storage_group }}'
admin_username: 'azureuser'
ssh_password_enabled: false
ssh_public_keys:
path: '/home/azureuser/.ssh/authorized_keys'
key_data: '{{ ssh_public_key }}'
network_interfaces: 'host_inside_interface'
image:
offer: CentOS
publisher: OpenLogic
sku: '7.1'
version: latest
register: host_facts
I get this:
fatal: [localhost]: FAILED! => {"changed": false, "failed": true,
"invocation": {"module_args": {"admin_username": "azureuser", "allocated":
true, "append_tags": true, "image": {"offer": "CentOS", "publisher":
"OpenLogic", "sku": "7.1", "version": "latest"}, "name":
"stevenca-hybrid-cloud-host", "network_interface_names":
"host_inside_interface", "network_interfaces": "host_inside_interface",
"os_disk_caching": "ReadOnly", "os_type": "Linux",
"public_ip_allocation_method": "Static", "remove_on_absent": ["all"],
"resource_group": "stevenca-hybrid-cloud", "restarted": false,
"ssh_password_enabled": false, "ssh_public_keys": {"key_data": "ssh-rsa
AAAAB3NzaC1yc2EAAAADAQABAAABAQDDgEwX8DzneLc/WTs1hT7ff0DPoSEKKI390pZEYF1FylDhBLswhUW/oXoUIGYprc4pMzaoFtcbsojJMkd7psMNEqJvy+IUUCmsX3OlUJw1q3vFt26oHyVUuvaGOoV2GinVeMp1GyCy9b2lsFIpBB1L31jAs/Qdb66TowhYhbhIcLU65xCE3X9LgBWWXRFTeLVC9OUBma0ZDHuvnrfw6zPmbuTzyVDOKdg0mxyec1+QH3OWKCSDRU0790U2xekFsEazmsJx1ZuqLt/pa+pDngd6cB9RZ/epHYCbvkB305lhXS+kfnweo8h59tLQxUDMft1YmDGZlPWCm8fuaIBFi6hn
stevenca@stevenca-login", "path": "/home/azureuser/.ssh/authorized_keys"},
"started": true, "state": "present", "storage_account":
"stevencahybridcloud", "storage_account_name": "stevencahybridcloud",
"storage_container_name": "vhds", "vm_size": "Standard_DS1_v2"},
"module_name": "azure_rm_virtualmachine"}, "msg": "argument ssh_public_keys
is of type <type 'dict'> and we were unable to convert to list"}
I've tried a few permutations with no success. '{{ ssh_public_key }}' is
the same that I put into a template with azure_rm_deployment that works.
Any guidance is appreciated.
Thanks,
Steven.
--
You received this message because you are subscribed to the Google Groups
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/ansible-project/34574520-637e-4410-b725-a6befd947e26%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.