Skip to content

Commit 607dd6c

Browse files
author
endurancetest20380119
authored
Add the Ansible configuration file path.
Please add the Ansible configuration file path `~/.ansible.cfg`. Because we have no permissions for the /etc directory in azure cloud, so we would trouble adding the file at `/etc/ansible/ansible.cfg` like me.
1 parent 1742121 commit 607dd6c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ Starting with Ansible 2.8, Ansible provides an [Azure dynamic-inventory plugin](
137137
Failed to connect to the host via ssh: Host key verification failed.
138138
```
139139
140-
If you do receive the "host-key verification" error, add the following line to the Ansible configuration file. The Ansible configuration file is located at `/etc/ansible/ansible.cfg`.
140+
If you do receive the "host-key verification" error, add the following line to the Ansible configuration file. The Ansible configuration file is located at `/etc/ansible/ansible.cfg` or `~/.ansible.cfg`.
141141
142142
```bash
143143
host_key_checking = False
@@ -286,4 +286,4 @@ This section illustrates one technique to test that Nginx is installed on your v
286286
## Next steps
287287
288288
> [!div class="nextstepaction"]
289-
> [Quickstart: Configure Linux virtual machines in Azure using Ansible](/azure/virtual-machines/linux/ansible-create-vm)
289+
> [Quickstart: Configure Linux virtual machines in Azure using Ansible](/azure/virtual-machines/linux/ansible-create-vm)

0 commit comments

Comments
 (0)