From bdc169d3c7f1105e81d0869f8d5aa61ec9eb25d9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Patrik=20Polakovi=C4=8D?= Date: Thu, 24 Apr 2025 15:05:14 +0200 Subject: [PATCH] Add Fedora version variable to the playbook MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Patrik Polakovič --- playbooks/manual/mirrormanager/move-devel-to-release.yml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/playbooks/manual/mirrormanager/move-devel-to-release.yml b/playbooks/manual/mirrormanager/move-devel-to-release.yml index 0b16adb554..d5ac99013e 100644 --- a/playbooks/manual/mirrormanager/move-devel-to-release.yml +++ b/playbooks/manual/mirrormanager/move-devel-to-release.yml @@ -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"