Skip to content

Commit d776fa9

Browse files
authored
Merge pull request #101037 from TomArcherMsft/ansible-git-hub-issue-45213
Ansible - GitHub Issue 45213
2 parents a77bc25 + ee06780 commit d776fa9

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

articles/ansible/ansible-deploy-app-vmss.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ title: Tutorial - Deploy apps to virtual machine scale sets in Azure using Ansib
33
description: Learn how to use Ansible to configure Azure virtual machine scale sets and deploy application on the scale set
44
keywords: ansible, azure, devops, bash, playbook, virtual machine, virtual machine scale set, vmss
55
ms.topic: tutorial
6-
ms.date: 04/30/2019
6+
ms.date: 01/13/2020
77
---
88

99
# Tutorial: Deploy apps to virtual machine scale sets in Azure using Ansible
@@ -51,13 +51,13 @@ Save the following sample playbook as `get-hosts-tasks.yml`:
5151
- name: Add all hosts
5252
add_host:
5353
groups: scalesethosts
54-
hostname: "{{ output_ip_address.ansible_facts.azure_publicipaddresses[0].properties.ipAddress }}_{{ item.properties.frontendPort }}"
55-
ansible_host: "{{ output_ip_address.ansible_facts.azure_publicipaddresses[0].properties.ipAddress }}"
54+
hostname: "{{ output_ip_address.publicipaddresses[0].ip_address }}_{{ item.properties.frontendPort }}"
55+
ansible_host: "{{ output_ip_address.publicipaddresses[0].ip_address }}"
5656
ansible_port: "{{ item.properties.frontendPort }}"
5757
ansible_ssh_user: "{{ admin_username }}"
5858
ansible_ssh_pass: "{{ admin_password }}"
5959
with_items:
60-
- "{{ output.ansible_facts.azure_loadbalancers[0].properties.inboundNatRules }}"
60+
- "{{ output.ansible_info.azure_loadbalancers[0].properties.inboundNatRules }}"
6161
```
6262
6363
## Prepare an application for deployment

0 commit comments

Comments
 (0)