From ca27ab62904b5a1485b5647fb1cee0127cfaffc2 Mon Sep 17 00:00:00 2001 From: Maxwell G Date: Sun, 12 Nov 2023 22:48:49 -0600 Subject: [PATCH] build-release: add `changed_when: false` to validate-tags-file task (#557) --- changelogs/fragments/557-changed-when-vt.yaml | 4 ++++ roles/build-release/tasks/build.yaml | 2 ++ 2 files changed, 6 insertions(+) create mode 100644 changelogs/fragments/557-changed-when-vt.yaml diff --git a/changelogs/fragments/557-changed-when-vt.yaml b/changelogs/fragments/557-changed-when-vt.yaml new file mode 100644 index 00000000..970ca60c --- /dev/null +++ b/changelogs/fragments/557-changed-when-vt.yaml @@ -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)." diff --git a/roles/build-release/tasks/build.yaml b/roles/build-release/tasks/build.yaml index 31a3ef74..fa3fcf8e 100644 --- a/roles/build-release/tasks/build.yaml +++ b/roles/build-release/tasks/build.yaml @@ -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