Skip to content

Commit

Permalink
fix: Ensure check-mode works for otel collector (#264)
Browse files Browse the repository at this point in the history
Co-authored-by: Ishan Jain <[email protected]>
  • Loading branch information
pieterlexis-tomtom and ishanjainn authored Oct 15, 2024
1 parent 5489609 commit fb6294c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions roles/opentelemetry_collector/handlers/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@
name: "{{ otel_collector_service_name }}"
state: restarted
become: true
ignore_errors: '{{ ansible_check_mode | bool }}'
1 change: 1 addition & 0 deletions roles/opentelemetry_collector/tasks/install.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,3 +54,4 @@
remote_src: yes
become: true
register: extract_result
when: not ansible_check_mode
1 change: 1 addition & 0 deletions roles/opentelemetry_collector/tasks/service.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,4 @@
enabled: yes
state: started
become: true
ignore_errors: '{{ ansible_check_mode | bool }}'

0 comments on commit fb6294c

Please sign in to comment.