File tree Expand file tree Collapse file tree 1 file changed +18
-18
lines changed Expand file tree Collapse file tree 1 file changed +18
-18
lines changed Original file line number Diff line number Diff line change @@ -131,27 +131,27 @@ The purpose of tags is to enable the ability to quickly and easily work with sub
131
131
132
132
1 . Insert the following code into the newly created ` nginx.yml ` file:
133
133
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
+ ` ` `
149
149
150
150
1. Run the ` nginx.yml` playbook:
151
151
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
+ ` ` `
155
155
156
156
1. Once you run the playbook, you see results similar to the following output :
157
157
You can’t perform that action at this time.
0 commit comments