Add Fedora version variable to the playbook #2584

Merged
ryanlerch merged 1 commit from devel_to_release into main 2025-04-28 10:36:55 +00:00
Contributor

Signed-off-by: Patrik Polakovič patrik@alphamail.org

Signed-off-by: Patrik Polakovič <patrik@alphamail.org>
First-time contributor

Build failed. More information on how to proceed and troubleshoot errors available at https://fedoraproject.org/wiki/Zuul-based-ci
https://fedora.softwarefactory-project.io/zuul/buildset/5359c3c46e094e2c8a54a29f61b20efa

Build failed. More information on how to proceed and troubleshoot errors available at https://fedoraproject.org/wiki/Zuul-based-ci https://fedora.softwarefactory-project.io/zuul/buildset/5359c3c46e094e2c8a54a29f61b20efa - [fi-ansible-lint-diff ](https://fedora.softwarefactory-project.io/zuul/build/a10cbe2a6d5e4accbda3249aca5b394f) : FAILURE in 2m 41s - [fi-yamllint-diff ](https://fedora.softwarefactory-project.io/zuul/build/4fdf1d55100c4c64a0386211f15ae66e) : SUCCESS in 2m 14s
Contributor

So, this is fine, but... perhaps we could use the variable here?

ie,

"{{ FedoraCycleNumber }}"

That way instead of hard coding it, it's always just the latest stable fedora release. So, when we want to run it it's all ready.

This will need also a:

vars_files:
- /srv/web/infra/ansible/vars/global.yml
- "/srv/web/infra/ansible/vars/all/00-FedoraCycleNumber.yaml"

to pick up the variable to be used.

So, this is fine, but... perhaps we could use the variable here? ie, "{{ FedoraCycleNumber }}" That way instead of hard coding it, it's always just the latest stable fedora release. So, when we want to run it it's all ready. This will need also a: vars_files: - /srv/web/infra/ansible/vars/global.yml - "/srv/web/infra/ansible/vars/all/00-FedoraCycleNumber.yaml" to pick up the variable to be used.
Author
Contributor

rebased onto 3a9f0cbfbb

rebased onto 3a9f0cbfbbcf155cd83b54042ad86851797ee27a
First-time contributor

Build failed. More information on how to proceed and troubleshoot errors available at https://fedoraproject.org/wiki/Zuul-based-ci
https://fedora.softwarefactory-project.io/zuul/buildset/575cf3b77fc641779dd35198b0f628b9

Build failed. More information on how to proceed and troubleshoot errors available at https://fedoraproject.org/wiki/Zuul-based-ci https://fedora.softwarefactory-project.io/zuul/buildset/575cf3b77fc641779dd35198b0f628b9 - [fi-ansible-lint-diff ](https://fedora.softwarefactory-project.io/zuul/build/a9bb3ae6525740b6b00bfac86aac0294) : FAILURE in 2m 47s - [fi-yamllint-diff ](https://fedora.softwarefactory-project.io/zuul/build/b96ffa197c4146598644e3d8785f7dc0) : SUCCESS in 2m 33s
Contributor

Pull-Request has been merged by jnsamyak

Pull-Request has been merged by jnsamyak
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
4 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: Infrastructure/ansible#2584
No description provided.