#2584 Add Fedora version variable to the playbook
Merged 2 months ago by jnsamyak. Opened 2 months ago by patrikp.
fedora-infra/ patrikp/ansible devel_to_release  into  main

@@ -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"

  

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.

rebased onto 3a9f0cb

2 months ago

Pull-Request has been merged by jnsamyak

2 months ago
Metadata