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:
parent
ab0828bde7
commit
4ab89f69d9
3 changed files with 33 additions and 7 deletions
|
@ -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
30
meta/main.yml
Normal 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: []
|
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue