Signed-off-by: Julien Riou <julien@riou.xyz>
This commit is contained in:
parent
1ed9d8939b
commit
b7199071b1
6 changed files with 41 additions and 23 deletions
|
|
@ -18,4 +18,4 @@
|
|||
|
||||
- name: deploy runners
|
||||
ansible.builtin.include_tasks: deploy-runners.yml
|
||||
when: forgejo_runners
|
||||
when: forgejo_runners is defined
|
||||
|
|
|
|||
|
|
@ -2,11 +2,11 @@
|
|||
- name: check variables
|
||||
ansible.builtin.assert:
|
||||
that:
|
||||
- forgejo_runners_instance | mandatory
|
||||
- forgejo_runners_version | mandatory
|
||||
- forgejo_runners_config_dir | mandatory
|
||||
- item.key | mandatory
|
||||
- item.value | mandatory
|
||||
- forgejo_runners_instance is defined
|
||||
- forgejo_runners_version is defined
|
||||
- forgejo_runners_config_dir is defined
|
||||
- "'key' in item"
|
||||
- "'value' in item"
|
||||
|
||||
- name: create runner subdirectory
|
||||
ansible.builtin.file:
|
||||
|
|
@ -33,8 +33,7 @@
|
|||
notify: start runners
|
||||
|
||||
- name: create runner configuration
|
||||
ansible.builtin.copy:
|
||||
src: runners/config.yml
|
||||
ansible.builtin.template:
|
||||
src: runners/config.yml.j2
|
||||
dest: "{{ forgejo_runners_config_dir }}/{{ item.key }}/config.yml"
|
||||
force: false
|
||||
notify: start runners
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue