You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/azure-arc/servers/onboard-ansible-playbooks.md
+20-35Lines changed: 20 additions & 35 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -29,68 +29,53 @@ Before you can run the script to connect your machines, you'll need to do the fo
29
29
30
30
If you are onboarding machines to Azure Arc-enabled servers, copy the following Ansible playbook template and save the playbook as `arc-server-onboard-playbook.yml`.
31
31
32
-
```
32
+
```yaml
33
33
---
34
34
- name: Onboard Linux and Windows Servers to Azure Arc-enabled servers with public endpoint connectivity
<!--If you are onboarding Linux servers to Azure Arc-enabled servers, download the following Ansible playbook template and save the playbook as `arc-server-onboard-playbook.yml`.
66
-
67
-
```
68
-
---
69
-
- name: Onboard Linux Server to Azure Arc-enabled servers with public endpoint
70
-
hosts: <INSERT-HOSTS>
71
-
tasks:
72
-
- name: Download the Connected Machine Agent
73
-
become: yes
74
-
get_url:
75
-
url: https://aka.ms/azcmagent
76
-
dest: ~/install_linux_azcmagent.sh
77
-
mode: '700'
78
-
when: ansible_system == 'Linux'
79
-
- name: Install the Connected Machine Agent
80
-
become: yes
81
-
shell: bash ~/install_linux_azcmagent.sh
82
-
when: ansible_system == 'Linux'
83
-
- name: Connect the Connected Machine Agent to Azure
After downloading the Ansible playbook, complete the following steps:
92
77
93
-
1. Within the Ansible playbook, modify the fields under the task **Connect the Connected Machine Agent to Azure** with the service principal and Azure details collected earlier:
78
+
1. Within the Ansible playbook, modify the variables under the **vars section** with the service principal and Azure details collected earlier:
94
79
95
80
* Service Principal Id
96
81
* Service Principal Secret
@@ -99,7 +84,7 @@ After downloading the Ansible playbook, complete the following steps:
99
84
* Subscription Id
100
85
* Region
101
86
102
-
1. Enter the correct hosts field capturing the target servers for onboarding to Azure Arc. You can employ Ansible patterns to selectively target which hybrid machines to onboard.
87
+
1. Enter the correct hosts field capturing the target servers for onboarding to Azure Arc. You can employ [Ansible patterns](https://docs.ansible.com/ansible/latest/user_guide/intro_patterns.html#common-patterns) to selectively target which hybrid machines to onboard.
0 commit comments