1
0
Fork 0
mirror of https://github.com/roles-ansible/ansible_role_forgeo_runner.git synced 2024-08-16 10:29:50 +02:00

Improve meta and configuration

This commit is contained in:
L3D 2024-03-21 17:30:37 +01:00
parent ab0828bde7
commit 4ab89f69d9
Signed by: l3d
GPG key ID: CD08445BFF4313D1
3 changed files with 33 additions and 7 deletions

View file

@ -2,7 +2,7 @@
extends: default
rules:
# 170 chars should be enough, but don't fail if a line is longer
# 220 chars should be enough, but don't fail if a line is longer
line-length:
max: 170
max: 220
level: warning

30
meta/main.yml Normal file
View file

@ -0,0 +1,30 @@
---
galaxy_info:
role_name: forgejo_runner
author: l3d
description: Ansible role to setup forgejo runner actionse.
license: "MIT"
min_ansible_version: "2.14"
platforms:
- name: Debian
versions:
- all
- name: Ubuntu
versions:
- all
- name: Fedora
versions:
- all
- name: EL
versions:
- all
galaxy_tags:
- forgejo
- runner
- action
- git
- development
- selfhosted
- gitserver
- linux
dependencies: []

View file

@ -12,10 +12,6 @@
- name: Register Forgejo runner
ansible.builtin.command:
chdir: "{{ forgejo_runner__user_home }}"
cmd: |
{{ forgejo_runner__full_executable_path }} register --no-interactive \
--token '{{ forgejo_runner__token }}' \
--instance '{{ forgejo_runner__instance_address }}' \
--name '{{ inventory_hostname }}@ansible'
cmd: "{{ forgejo_runner__full_executable_path }} register --no-interactive --token '{{ forgejo_runner__token }}' --instance '{{ forgejo_runner__instance_address }}' --name '{{ inventory_hostname }}@ansible'"
creates: "{{ forgejo_runner__user_home }}/.runner"
become: true