Skip to content

Commit

Permalink
fix: Ensure check-mode works for otel collector
Browse files Browse the repository at this point in the history
  • Loading branch information
pieterlexis-tomtom committed Sep 4, 2024
1 parent da6b375 commit 1cd60e2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
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: not ansible_check_mode

0 comments on commit 1cd60e2

Please sign in to comment.