blob: f09d3519791b78b6f3f9a820c6efe6d1e9bf0cc8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
---
- name: COPR Erlang update
hosts: all
tasks:
- name: Ensure webhook URLs are defined
no_log: true
ansible.builtin.assert:
that:
- kolla_copr_webhooks.urls is defined
- kolla_copr_webhooks.urls | type_debug == 'list'
- kolla_copr_webhooks.urls | length > 0
fail_msg: "Missing Zuul secret 'kolla_copr_webhooks.urls' (list of webhook URLs)."
- name: Trigger COPR builds via webhooks
ansible.builtin.uri:
url: "{{ item | trim }}"
method: POST
loop: "{{ kolla_copr_webhooks.urls }}"
|