Skip to content

Commit

Permalink
Merge pull request #118 from linkorb/playbook-idempotency-9352
Browse files Browse the repository at this point in the history
Playbook idempotency for version changes #9352
  • Loading branch information
mhitza authored Jan 17, 2025
2 parents fb5ec4a + 9b41adb commit 573f25e
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 11 deletions.
21 changes: 11 additions & 10 deletions repo.yaml
Original file line number Diff line number Diff line change
@@ -1,18 +1,19 @@
version: v0.9.2
name: repo-ansible
description: Ansible playbooks with templated configuration to apply to all LinkORB
code repositories.
license: mit
codeowners:
- pattern: '*'
owners:
- owners:
- '@mhitza'
pattern: '*'
description: Ansible playbooks with templated configuration to apply to all LinkORB
code repositories.
github:
features:
issues: true
wiki: true
topics:
- ansible
- automation
features:
wiki: true
issues: true
license: mit
license_year: 2024
name: repo-ansible
type: other
version: v0.10.1
visibility: public
3 changes: 2 additions & 1 deletion tasks/version-migrations.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@
# XXX renamed to avoid warnings if included tasks include loops of their own
loop_var: item_migration

- ansible.builtin.include_tasks: "tasks/migrations/update-version.yaml"
- when: target_repo_ansible_version != repo_yaml['version']
ansible.builtin.include_tasks: "tasks/migrations/update-version.yaml"
vars:
to_version: "{{ target_repo_ansible_version }}"

0 comments on commit 573f25e

Please sign in to comment.