zuul-jobs/roles/upload-forge/tasks/main.yaml
Tobias Urdin a9322c04b6 Rework upload-forge role to use module
Renames the role to upload-forge because you can actually
run your own Forge server if you want.

This patch adds a custom module to the upload-forge
role that provides the "forge_upload" module.

This directly interacts with the a Forge API to upload the
module. The only dependency is that the python requests
module is installed.

Change-Id: I5749364bd2c29ad6df866c2bd5a3584c8419f709
2019-02-09 10:32:34 +01:00

14 lines
349 B
YAML

- name: Check required variables
assert:
that:
- "forge_username is defined"
- "forge_password is defined"
- "forge_tarball is defined"
- name: Upload module to Forge
forge_upload:
username: "{{ forge_username }}"
password: "{{ forge_password }}"
tarball: "{{ forge_tarball }}"
forgeapi: "{{ forge_url }}"