Skip to content

Commit 2f26cc4

Browse files
authored
Merge pull request #14401 from OxHobbs/ansible_pb_yml
Fix yaml indentation that has broken automatic numbering
2 parents 31241b7 + 9cf954f commit 2f26cc4

File tree

1 file changed

+18
-18
lines changed

1 file changed

+18
-18
lines changed

articles/ansible/ansible-manage-azure-dynamic-inventories.md

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -131,27 +131,27 @@ The purpose of tags is to enable the ability to quickly and easily work with sub
131131

132132
1. Insert the following code into the newly created `nginx.yml` file:
133133

134-
```yml
135-
---
136-
- name: Install and start Nginx on an Azure virtual machine
137-
hosts: azure
138-
become: yes
139-
tasks:
140-
- name: install nginx
141-
apt: pkg=nginx state=installed
142-
notify:
143-
- start nginx
144-
145-
handlers:
146-
- name: start nginx
147-
service: name=nginx state=started
148-
```
134+
```yml
135+
---
136+
- name: Install and start Nginx on an Azure virtual machine
137+
hosts: azure
138+
become: yes
139+
tasks:
140+
- name: install nginx
141+
apt: pkg=nginx state=installed
142+
notify:
143+
- start nginx
144+
145+
handlers:
146+
- name: start nginx
147+
service: name=nginx state=started
148+
```
149149
150150
1. Run the `nginx.yml` playbook:
151151

152-
```azurecli-interactive
153-
ansible-playbook -i azure_rm.py nginx.yml
154-
```
152+
```azurecli-interactive
153+
ansible-playbook -i azure_rm.py nginx.yml
154+
```
155155

156156
1. Once you run the playbook, you see results similar to the following output:
157157

0 commit comments

Comments
 (0)