Skip to content

Commit

Permalink
build-release: add changed_when: false to validate-tags-file task (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
gotmax23 authored Nov 13, 2023
1 parent 27754fb commit ca27ab6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions changelogs/fragments/557-changed-when-vt.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
minor_changes:
- "build-release role - add ``changed_when: false`` to validate-tags task
(https://github.com/ansible-community/antsibulll/pull/557)."
2 changes: 2 additions & 0 deletions roles/build-release/tasks/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,8 @@
when: antsibull_tags_validate
# ignore_errors creates conspicuous error messages without failing the playbook
ignore_errors: "{{ not antsibull_tags_enforce_policy }}"
# This command never changes anything
changed_when: false
ansible.builtin.command: >-
{{ antsibull_build_command }} validate-tags-file
{{ antsibull_data_dir }}/ansible-{{ antsibull_ansible_version }}-tags.yaml
Expand Down

0 comments on commit ca27ab6

Please sign in to comment.