Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: version errors for new configurations #0000 #122

Merged
merged 1 commit into from
Jan 25, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion playbook-all.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
destination: "{{ repo_path }}"
when: not skip_checkout

- import_tasks: tasks/retrieve-validate-repo-data.yaml
- import_tasks: tasks/version-migrations.yaml
- import_tasks: tasks/retrieve-validate-repo-data.yaml

- import_tasks: tasks/retrieve-docs-data.yaml
- import_tasks: tasks/generate-files.yaml
Expand Down
2 changes: 1 addition & 1 deletion playbook-cwd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
repo_path: "{{ lookup('env', 'PWD') }}"
tasks:

- import_tasks: tasks/retrieve-validate-repo-data.yaml
- import_tasks: tasks/version-migrations.yaml
- import_tasks: tasks/retrieve-validate-repo-data.yaml

- import_tasks: tasks/retrieve-docs-data.yaml
- import_tasks: tasks/generate-files.yaml
Expand Down
4 changes: 2 additions & 2 deletions tasks/version-migrations.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
repo_yaml: "{{ repo_yaml_source.content | b64decode | from_yaml }}"

- name: list required migrations
ansible.builtin.command: "./library/list_migrations.py '{{ repo.version|default('v0.0.0') }}'"
ansible.builtin.command: "./library/list_migrations.py '{{ repo_yaml.version|default('v0.0.0') }}'"
register: list_migrations
changed_when: false

Expand All @@ -44,7 +44,7 @@
# XXX renamed to avoid warnings if included tasks include loops of their own
loop_var: item_migration

- when: target_repo_ansible_version != repo_yaml['version']
- when: target_repo_ansible_version != repo_yaml['version']|default('v0.0.0')
ansible.builtin.include_tasks: "tasks/migrations/update-version.yaml"
vars:
to_version: "{{ target_repo_ansible_version }}"
Loading