diff --git a/articles/ansible/install-on-linux-vm.md b/articles/ansible/install-on-linux-vm.md index 8aecd2fcc9..43fa7e54c4 100644 --- a/articles/ansible/install-on-linux-vm.md +++ b/articles/ansible/install-on-linux-vm.md @@ -234,10 +234,10 @@ Replace `` and `` with your values. ```yml --- - hosts: localhost - connection: local - tasks: + connection: local + tasks: - name: Creating resource group - azure_rm_resourcegroup: + azure_rm_resourcegroup: name: "" ``` @@ -248,12 +248,12 @@ Replace `` and `` with your values. - hosts: localhost connection: local collections: - - azure.azcollection + - azure.azcollection tasks: - - name: Creating resource group + - name: Creating resource group azure_rm_resourcegroup: - name: "" + name: "" ``` Replace `` and `` with your values. diff --git a/articles/ansible/key-vault-configure-secrets.md b/articles/ansible/key-vault-configure-secrets.md index cdd1117f0a..d15cede2a8 100644 --- a/articles/ansible/key-vault-configure-secrets.md +++ b/articles/ansible/key-vault-configure-secrets.md @@ -53,10 +53,10 @@ Ansible needs a resource group to deploy your resources in. ```yml --- - vars: - tenant_id: - object_id: - vault_name: + vars: + tenant_id: + object_id: + vault_name: ``` Replace ``, ``, and `` with the appropriate values. The objectId is used to grant access to secrets within the key vault. @@ -68,22 +68,22 @@ Ansible needs a resource group to deploy your resources in. ```yml --- - - name: Create key vault instance - azure_rm_keyvault: - resource_group: ansible-kv-test-rg - vault_name: "{{ vault_name }}" - enabled_for_deployment: yes - vault_tenant: "{{ tenant_id }}" - sku: - name: standard - access_policies: - - tenant_id: "{{ tenant_id }}" - object_id: "{{ object_id }}" - secrets: - - get - - list - - set - - delete + - name: Create key vault instance + azure_rm_keyvault: + resource_group: ansible-kv-test-rg + vault_name: "{{ vault_name }}" + enabled_for_deployment: yes + vault_tenant: "{{ tenant_id }}" + sku: + name: standard + access_policies: + - tenant_id: "{{ tenant_id }}" + object_id: "{{ object_id }}" + secrets: + - get + - list + - set + - delete ``` 1. Run the `create_kv.yml` playbook.