Fixes #2. Signed-off-by: Julien Riou <julien@riou.xyz>
This commit is contained in:
parent
1ed9d8939b
commit
c02dc6a20a
7 changed files with 49 additions and 24 deletions
|
|
@ -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
|
||||
notify: restart runners
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue