Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions articles/ansible/install-on-linux-vm.md
Original file line number Diff line number Diff line change
Expand Up @@ -234,10 +234,10 @@ Replace `<resource_group_name>` and `<location>` with your values.
```yml
---
- hosts: localhost
connection: local
tasks:
connection: local
tasks:
- name: Creating resource group
azure_rm_resourcegroup:
azure_rm_resourcegroup:
name: "<resource_group_name"
location: "<location>"
```
Expand All @@ -248,12 +248,12 @@ Replace `<resource_group_name>` and `<location>` 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: "<resource_group_name"
location: "<location>"
name: "<resource_group_name"
location: "<location>"
```

Replace `<resource_group_name>` and `<location>` with your values.
Expand Down
40 changes: 20 additions & 20 deletions articles/ansible/key-vault-configure-secrets.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,10 @@ Ansible needs a resource group to deploy your resources in.

```yml
---
vars:
tenant_id: <tenantId>
object_id: <servicePrincipalObjectId>
vault_name: <vaultName>
vars:
tenant_id: <tenantId>
object_id: <servicePrincipalObjectId>
vault_name: <vaultName>
```

Replace `<tenantId>`, `<servicePrincipalObjectId>`, and `<vaultName>` with the appropriate values. The objectId is used to grant access to secrets within the key vault.
Expand All @@ -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.
Expand Down