You've already forked ansible-role-gitea-runner
Compare commits
5 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
3fd470fe3b
|
|||
| c6308901df | |||
|
8c50c4bafb
|
|||
| e350f6781e | |||
|
a8b07f7397
|
@@ -11,7 +11,7 @@ jobs:
|
|||||||
ansible-lint:
|
ansible-lint:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v6.0.1
|
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
|
||||||
- name: Run ansible-lint
|
- name: Run ansible-lint
|
||||||
uses: ansible/ansible-lint@v25.12.2
|
uses: ansible/ansible-lint@v25.12.2
|
||||||
with:
|
with:
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ jobs:
|
|||||||
runs-on:
|
runs-on:
|
||||||
- ubuntu-latest
|
- ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v6.0.1
|
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
|
||||||
- uses: DavidAnson/markdownlint-cli2-action@v21.0.0
|
- uses: DavidAnson/markdownlint-cli2-action@ded1f9488f68a970bc66ea5619e13e9b52e601cd # v23.2.0
|
||||||
with:
|
with:
|
||||||
globs: '**/*.md'
|
globs: '**/*.md'
|
||||||
|
|||||||
@@ -95,6 +95,7 @@ Found roles matching your search:
|
|||||||
| `gitea_runner_config.container.require_docker` | Always require a reachable docker daemon | `false` |
|
| `gitea_runner_config.container.require_docker` | Always require a reachable docker daemon | `false` |
|
||||||
| `gitea_runner_config.container.docker_timeout` | Timeout to wait for the docker daemon to be reachable | `0s` |
|
| `gitea_runner_config.container.docker_timeout` | Timeout to wait for the docker daemon to be reachable | `0s` |
|
||||||
| `gitea_runner_config.host.workdir_parent` | The parent directory of a job's working directory | `nil` |
|
| `gitea_runner_config.host.workdir_parent` | The parent directory of a job's working directory | `nil` |
|
||||||
|
| `gitea_runner_unix_extra_groups` | List of additional unix groups to append the executing gitea-runner user to. | `[]` |
|
||||||
| `gitea_runner_gitea_url` | The URL of the Gitea instance | `""` |
|
| `gitea_runner_gitea_url` | The URL of the Gitea instance | `""` |
|
||||||
| `gitea_runner_token` | The registration token for the gitea_runner | `""` |
|
| `gitea_runner_token` | The registration token for the gitea_runner | `""` |
|
||||||
|
|
||||||
|
|||||||
@@ -75,6 +75,10 @@ gitea_runner_config:
|
|||||||
## @param gitea_runner_config.host.workdir_parent The parent directory of a job's working directory
|
## @param gitea_runner_config.host.workdir_parent The parent directory of a job's working directory
|
||||||
workdir_parent:
|
workdir_parent:
|
||||||
|
|
||||||
|
## @param gitea_runner_unix_extra_groups List of additional unix groups to append the executing gitea-runner user to.
|
||||||
|
gitea_runner_unix_extra_groups: []
|
||||||
|
# - docker
|
||||||
|
|
||||||
## @param gitea_runner_gitea_url The URL of the Gitea instance
|
## @param gitea_runner_gitea_url The URL of the Gitea instance
|
||||||
gitea_runner_gitea_url: ""
|
gitea_runner_gitea_url: ""
|
||||||
|
|
||||||
|
|||||||
+7
-2
@@ -26,8 +26,7 @@
|
|||||||
failed_when: _gitea_check.status is not defined or _gitea_check.status >= 400
|
failed_when: _gitea_check.status is not defined or _gitea_check.status >= 400
|
||||||
|
|
||||||
- name: Install gitea-runner and dependencies
|
- name: Install gitea-runner and dependencies
|
||||||
when:
|
when: ansible_facts['distribution'] == 'Archlinux'
|
||||||
- ansible_facts['distribution'] == 'Archlinux'
|
|
||||||
block:
|
block:
|
||||||
- name: Update package cache
|
- name: Update package cache
|
||||||
community.general.pacman:
|
community.general.pacman:
|
||||||
@@ -38,6 +37,12 @@
|
|||||||
state: present
|
state: present
|
||||||
with_items: "{{ gitea_runner_package_names }}"
|
with_items: "{{ gitea_runner_package_names }}"
|
||||||
|
|
||||||
|
- name: Add unix user to further groups
|
||||||
|
ansible.builtin.user:
|
||||||
|
name: "{{ gitea_runner_unix_user }}"
|
||||||
|
groups: "{{ gitea_runner_unix_groups + gitea_runner_unix_extra_groups }}"
|
||||||
|
append: true
|
||||||
|
|
||||||
- name: Create gitea-runner config directory
|
- name: Create gitea-runner config directory
|
||||||
ansible.builtin.file:
|
ansible.builtin.file:
|
||||||
path: "{{ gitea_runner_config_file | dirname }}"
|
path: "{{ gitea_runner_config_file | dirname }}"
|
||||||
|
|||||||
@@ -7,5 +7,6 @@ gitea_runner_service_name: gitea-runner
|
|||||||
|
|
||||||
gitea_runner_unix_user: gitea-runner
|
gitea_runner_unix_user: gitea-runner
|
||||||
gitea_runner_unix_group: gitea-runner
|
gitea_runner_unix_group: gitea-runner
|
||||||
|
gitea_runner_unix_groups: []
|
||||||
|
|
||||||
gitea_runner_lib_dir: /var/lib/gitea-runner
|
gitea_runner_lib_dir: /var/lib/gitea-runner
|
||||||
|
|||||||
Reference in New Issue
Block a user