Test out a little bit of variable stuff to see if it will work to help us.
This commit is contained in:
parent
56da61c351
commit
bf771767ef
7 changed files with 37 additions and 0 deletions
|
@ -38,8 +38,14 @@
|
|||
- "/srv/private/ansible/vars.yml"
|
||||
- /srv/web/infra/ansible/vars/{{ ansible_distribution }}.yml
|
||||
|
||||
include_vars:
|
||||
- dir: /srv/web/infra/ansible/vars/all/
|
||||
|
||||
pre_tasks:
|
||||
- import_tasks: "{{ tasks_path }}/yumrepos.yml"
|
||||
- debug: var=FedoraRawhideNumber
|
||||
- debug: var=FedoraBranchedNumber
|
||||
- debug: var=FedoraOldCycleNumber
|
||||
|
||||
roles:
|
||||
- base
|
||||
|
|
1
vars/all/00-FedoraCycleNumber.yaml
Normal file
1
vars/all/00-FedoraCycleNumber.yaml
Normal file
|
@ -0,0 +1 @@
|
|||
28
|
1
vars/all/FedoraBranchedNumber.yaml
Normal file
1
vars/all/FedoraBranchedNumber.yaml
Normal file
|
@ -0,0 +1 @@
|
|||
FedoraBranchedNumber: "{{ FedoraCycleNumber }}|int + 1"
|
1
vars/all/FedoraBranchedStatus.yaml
Normal file
1
vars/all/FedoraBranchedStatus.yaml
Normal file
|
@ -0,0 +1 @@
|
|||
FedoraBranchedStatus: post-beta
|
1
vars/all/FedoraOldCycleNumber.yaml
Normal file
1
vars/all/FedoraOldCycleNumber.yaml
Normal file
|
@ -0,0 +1 @@
|
|||
FedoraOldCycleNumber: 27
|
1
vars/all/FedoraRawhideNumber.yaml
Normal file
1
vars/all/FedoraRawhideNumber.yaml
Normal file
|
@ -0,0 +1 @@
|
|||
FedoraRawhideNumber: "{{ FedoraBranchedNumber }}|int + 1"
|
26
vars/all/README
Normal file
26
vars/all/README
Normal file
|
@ -0,0 +1,26 @@
|
|||
This directory contains variables (one per file) that are loaded into
|
||||
various playbooks. The first set of these is to allow templates to
|
||||
handle the various stages of Fedora development so we don't have to
|
||||
remember all the places that need changing.
|
||||
|
||||
There's 3 states:
|
||||
|
||||
1:
|
||||
|
||||
Rawhide N+1
|
||||
Fedora N (stable)
|
||||
Fedora N-1 (stable)
|
||||
|
||||
2: We branch a new release from rawhide:
|
||||
|
||||
Rahide N+2
|
||||
Fedora N+1 (pre)
|
||||
Fedora N (stable)
|
||||
Fedora N-1 (stable)
|
||||
|
||||
3. That release is released:
|
||||
|
||||
Rawhide N+1
|
||||
Fedora N (stable)
|
||||
Fedora N-1 (stable)
|
||||
Fedora N-2 (stable)
|
Loading…
Add table
Add a link
Reference in a new issue