start to add compose calls

This commit is contained in:
Louis Abel 2023-10-09 10:59:30 -07:00
parent cbcf5dfc33
commit f793aa66d9
Signed by: label
GPG Key ID: B37E62D143879B36
7 changed files with 45 additions and 13 deletions

22
adhoc-compose-run-sig.yml Normal file
View 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
View 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
...

View File

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

View File

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

View File

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

View File

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

View File

@ -20,5 +20,5 @@
failed_when: "result.rc != 0"
when:
- release_ver is defined
- release_ver >= "9"
- release_ver|int >= 9
...