Add Fedora version variable to the playbook

Signed-off-by: Patrik Polakovič <patrik@alphamail.org>
This commit is contained in:
Patrik Polakovič 2025-04-24 15:05:14 +02:00
parent 3a9f0cbfbb
commit bdc169d3c7

View file

@ -1,18 +1,17 @@
# This playbook moves a branched version to a released version in MirrorManager's DB
# Usage:
# --extra-vars="version='42'"
# version => The version that must be expired and updated.
---
- name: Run the move-devel-to-release script
hosts: os_control[0]:os_control_stg[0]
user: root
vars:
version: "{{ FedoraCycleNumber }}"
vars_files:
- /srv/web/infra/ansible/vars/global.yml
- /srv/private/ansible/vars.yml
- /srv/web/infra/ansible/vars/{{ ansible_distribution }}.yml
- /srv/web/infra/ansible/vars/apps/mirrormanager.yml
- /srv/web/infra/ansible/vars/all/00-FedoraCycleNumber.yaml
handlers:
- import_tasks: "{{ handlers_path }}/restart_services.yml"