1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00
community.general/test/integration/roles/azure_rm_deployment/tasks/main.yml
Matt Clay c27ebfc368 Migrate roles from ansible/azure-testing (#28074)
* Migrate roles from ansible/azure-testing as-is.
* Fix yamllint issues.
* Remove unused binary file.
2017-08-11 16:16:39 -07:00

27 lines
817 B
YAML

- name: Create Azure Deploy
azure_rm_deployment:
resource_group: Test_Deployment
template_link: 'https://raw.githubusercontent.com/Azure/azure-quickstart-templates/master/101-vm-simple-linux/azuredeploy.json'
parameters:
adminUsername:
value: chouseknecht
adminPassword:
value: password123!
dnsLabelPrefix:
value: testvm9910001
ubuntuOSVersion:
value: "14.04.2-LTS"
# debug: "{{ playbook_debug }}"
register: output
- debug: var=output
when: playbook_debug
- name: Add new instance to host group
add_host:
hostname: "{{ item.vm_name }}"
ansible_host: "{{ item['ips'][0].public_ip }}"
ansible_user: chouseknecht
ansible_ssh_pass: password123!
groupname: azure_vms
with_items: "{{ output.deployment.instances }}"