start to add compose calls
This commit is contained in:
parent
cbcf5dfc33
commit
f793aa66d9
22
adhoc-compose-run-sig.yml
Normal file
22
adhoc-compose-run-sig.yml
Normal file
@ -0,0 +1,22 @@
|
||||
---
|
||||
# This playbook is meant to be used with callable variables, like adhoc or AWX.
|
||||
- name: Run a compose
|
||||
hosts: srpmproc
|
||||
become: true
|
||||
become_user: root
|
||||
vars_files:
|
||||
- "vars/common.yml"
|
||||
|
||||
pre_tasks:
|
||||
- name: "Verify vars are set"
|
||||
ansible.builtin.assert:
|
||||
that:
|
||||
- release_ver|int >= 8
|
||||
- sig
|
||||
success_msg: "We are ready to compose"
|
||||
fail_msg: "release_ver or sig is not set correctly."
|
||||
|
||||
tasks:
|
||||
- name: "Run compose operation"
|
||||
import_tasks: tasks/compose-sig.yml
|
||||
...
|
22
adhoc-compose-run.yml
Normal file
22
adhoc-compose-run.yml
Normal file
@ -0,0 +1,22 @@
|
||||
---
|
||||
# This playbook is meant to be used with callable variables, like adhoc or AWX.
|
||||
- name: Run a compose
|
||||
hosts: srpmproc
|
||||
become: true
|
||||
become_user: root
|
||||
vars_files:
|
||||
- "vars/common.yml"
|
||||
|
||||
pre_tasks:
|
||||
- name: "Verify vars are set"
|
||||
ansible.builtin.assert:
|
||||
that:
|
||||
- release_ver|int >= 8
|
||||
- (release_type|lower == 'stable') or (release_type|lower == 'lh') or (release_type|lower == 'beta')
|
||||
success_msg: "We are ready to compose"
|
||||
fail_msg: "release_ver or release_type is not set correctly."
|
||||
|
||||
tasks:
|
||||
- name: "Run compose operation"
|
||||
import_tasks: tasks/compose.yml
|
||||
...
|
@ -1,6 +1,5 @@
|
||||
---
|
||||
# This playbook is meant to be used with callable variables, like adhoc or AWX.
|
||||
# What: Creates a simple koji tag. That's it.
|
||||
- name: Generate file list
|
||||
hosts: srpmproc
|
||||
become: true
|
||||
|
@ -1,6 +1,5 @@
|
||||
---
|
||||
# This playbook is meant to be used with callable variables, like adhoc or AWX.
|
||||
# What: Creates a simple koji tag. That's it.
|
||||
- name: Sync a compose to staging
|
||||
hosts: srpmproc
|
||||
become: true
|
||||
|
@ -1,6 +1,5 @@
|
||||
---
|
||||
# This playbook is meant to be used with callable variables, like adhoc or AWX.
|
||||
# What: Creates a simple koji tag. That's it.
|
||||
- name: Sync a compose to staging
|
||||
hosts: srpmproc
|
||||
become: true
|
||||
|
@ -12,13 +12,4 @@
|
||||
failed_when: "result.rc != 0"
|
||||
when:
|
||||
- release_ver is defined
|
||||
- release_ver == "8"
|
||||
|
||||
- name: "Sync {{ release_ver }} to production (new)"
|
||||
ansible.builtin.shell: "/bin/bash /root/sync-devel/sync/sync-to-prod.delete.sh"
|
||||
changed_when: 1 != 1
|
||||
failed_when: "result.rc != 0"
|
||||
when:
|
||||
- release_ver is defined
|
||||
- release_ver >= "9"
|
||||
...
|
||||
|
@ -20,5 +20,5 @@
|
||||
failed_when: "result.rc != 0"
|
||||
when:
|
||||
- release_ver is defined
|
||||
- release_ver >= "9"
|
||||
- release_ver|int >= 9
|
||||
...
|
||||
|
Loading…
Reference in New Issue
Block a user