ansible-buildsys-management/adhoc-compose-run.yml

23 lines
638 B
YAML
Raw Normal View History

2023-10-09 17:59:30 +00:00
---
# 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
...