From f3170cb5a11ca9f48c494979fa242d333592c055 Mon Sep 17 00:00:00 2001 From: Adrien Waksberg Date: Sat, 11 May 2024 11:42:46 +0200 Subject: [PATCH] test: fix syntax for ansible lint --- meta/argument_specs.yml | 42 +++++++++++++++++++++++++++++++++++++++++ tasks/main.yml | 2 +- 2 files changed, 43 insertions(+), 1 deletion(-) create mode 100644 meta/argument_specs.yml diff --git a/meta/argument_specs.yml b/meta/argument_specs.yml new file mode 100644 index 0000000..f0b4276 --- /dev/null +++ b/meta/argument_specs.yml @@ -0,0 +1,42 @@ +--- +argument_specs: + main: + short_description: Install and configure a Forgejo runner + description: + - Install and configure a Forgejo runner + author: Adrien Waksberg + options: + forgejo_runner_version: + type: str + required: false + default: 3.4.1 + description: the version to install + forgejo_runner_binary_checksum: + type: str + required: false + default: sha256:5cf1d28e6d2d6168b10f2e7fac5425fe6789491834c047b5f7bb21ab84b9eaf5 + description: the checksum of binary + forgejo_runner_arch: + type: str + required: false + default: amd64 + description: the architecture of binary to install + forgejo_runner_name: + type: str + required: false + default: inventory_hostname + description: the runner name in Forgejo + forgejo_runner_config: + type: dict + required: false + description: the Forgejo runner config + default: + log: + level: info + runner: + file: /opt/forgejo-runner/.runner + capacity: 1 + timeout: 30m + insecure: false + container: + force_pull: true diff --git a/tasks/main.yml b/tasks/main.yml index 45036bd..02930fd 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -1,5 +1,5 @@ --- -- name: install dependency +- name: Install dependency ansible.builtin.package: name: - docker.io