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

Merge pull request #2 from roles-ansible/meta

Improve meta and configuration
This commit is contained in:
L3D 2024-03-21 17:32:03 +01:00 committed by GitHub
commit 64cb843527
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 33 additions and 7 deletions

View file

@ -2,7 +2,7 @@
extends: default extends: default
rules: 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: line-length:
max: 170 max: 220
level: warning 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 - name: Register Forgejo runner
ansible.builtin.command: ansible.builtin.command:
chdir: "{{ forgejo_runner__user_home }}" chdir: "{{ forgejo_runner__user_home }}"
cmd: | cmd: "{{ forgejo_runner__full_executable_path }} register --no-interactive --token '{{ forgejo_runner__token }}' --instance '{{ forgejo_runner__instance_address }}' --name '{{ inventory_hostname }}@ansible'"
{{ 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" creates: "{{ forgejo_runner__user_home }}/.runner"
become: true become: true