Debian Codegraph @

ansible_collections/azure/azcollection/roles/azure_arc/tasks/linux_connect.yml

raw symbols SCIP
1 ---
2 - name: Use azure arc agent to connect to azure
3 become: true
4 # This command produces output that includes an access token
5 no_log: true
6 ansible.builtin.command:
7 argv:
8 - azcmagent
9 - connect
10 - --resource-group
11 - "{{ azure_arc_resource_group }}"
12 - --tenant-id
13 - "{{ azure_arc_tenant_id }}"
14 - --location
15 - "{{ azure_arc_location }}"
16 - --subscription-id
17 - "{{ azure_arc_subscription_id }}"
18 - --cloud
19 - "{{ azure_arc_cloud }}"
20 - --tags
21 - "{{ azure_arc_processed_tags }}"
22 - --access-token
23 - "{{ azure_arc_access_token.access_token }}"
24 - --json
25 # If this command is run, it will always change the connection status from unconnected to connected
26 changed_when: true
27 register: azure_arc_azcmagent_connect_json