23 lines
638 B
YAML
23 lines
638 B
YAML
|
---
|
||
|
# 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
|
||
|
...
|