Skip to content

Commit

Permalink
Remove comment
Browse files Browse the repository at this point in the history
Signed-off-by: Webster Mudge <[email protected]>
  • Loading branch information
wmudge committed Apr 6, 2022
1 parent c6a9933 commit cb5d05e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
8 changes: 6 additions & 2 deletions roles/data/tasks/setup_azure.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,16 @@
loop_var: __data_store_azure_location

- name: Process Azure role assignments for external data storage locations
azure.azcollection.azure_rm_roleassignment: # This Azure module is not idempotent on removals
azure.azcollection.azure_rm_roleassignment:
state: present
scope: "{{ __azure_data_location_assignment.scope }}"
name: "{{ __azure_data_location_assignment.name }}"
assignee_object_id: "{{ __azure_data_location_assignment.assignee }}"
role_definition_id: "{{ __data_store.read_only | default(False) | ternary(__azure_storage_blob_data_reader_uri, __azure_storage_blob_data_owner_uri) }}"
loop: "{{ __azure_data_location_storage_assignments }}"
loop_control:
loop_var: __azure_data_location_assignment
loop_var: __azure_data_location_assignment
register: __data_azure_assignment_results
until: __data_azure_assignment_results is not failed
retries: 3
delay: 3
2 changes: 1 addition & 1 deletion roles/data/tasks/teardown_azure.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
when: __data_storage.assignment.delete | default(data__teardown_deletes_assignments)
block:
- name: Process Azure role assignment removal for external data storage locations
azure.azcollection.azure_rm_roleassignment: # This Azure module is not idempotent on removals
azure.azcollection.azure_rm_roleassignment:
state: absent
scope: "{{ __azure_data_location_assignment.scope }}"
assignee_object_id: "{{ __azure_data_location_assignment.assignee }}"
Expand Down

0 comments on commit cb5d05e

Please sign in to comment.