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

23 lines
538 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
- 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
...