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

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