binary installs properly
This commit is contained in:
parent
313c1212a5
commit
81bc826793
@ -1,7 +1,7 @@
|
||||
---
|
||||
# defaults file for deploy_adguard
|
||||
# defaults file for deploy_gitea_runner
|
||||
deploy_gitea_runner_version: latest
|
||||
deploy_gitea_runner_deploy_method: docker # deployment method, either host or docker.
|
||||
deploy_gitea_runner_deploy_method: host # deployment method, either host or docker.
|
||||
deploy_gitea_runner_directory: /opt/gitea-actions
|
||||
deploy_gitea_runner_timezone: "Europe/Paris"
|
||||
deploy_gitea_runner_start_service: false
|
||||
|
2
tasks/install_docker.yml
Normal file
2
tasks/install_docker.yml
Normal file
@ -0,0 +1,2 @@
|
||||
---
|
||||
# task/install_docker file for deploy_gitea_runner
|
@ -4,7 +4,7 @@
|
||||
vars:
|
||||
_gitea_actions_url_ext: "{% if deploy_gitea_runner_version == 'latest'%}releases{% else %}releases/tags{% endif %}"
|
||||
ansible.builtin.uri:
|
||||
url: "{{ deploy_gitea_runner_gitea_api }}/{{ _docker_compose_url_ext }}/{{ install_docker_compose_version }}"
|
||||
url: "{{ deploy_gitea_runner_gitea_api }}/{{ _gitea_actions_url_ext }}/{{ deploy_gitea_runner_version }}"
|
||||
return_content: true
|
||||
register: _gitea_runner_new_release
|
||||
|
||||
@ -38,10 +38,10 @@
|
||||
when: deploy_gitea_runner_current_version is not defined
|
||||
or deploy_gitea_runner_wanted_version not in deploy_gitea_runner_current_version
|
||||
block:
|
||||
- name: "Download and install gitea_runner version:{{ hashi_consul_envoy_version }}"
|
||||
- name: "Download and install gitea_runner version:{{ deploy_gitea_runner_version }}"
|
||||
ansible.builtin.get_url:
|
||||
url: "{{ deploy_gitea_runner_gitea_url }}/releases/download/v{{ deploy_gitea_runner_wanted_version }}/act_runner-{{ deploy_gitea_runner_wanted_version }}-linux-{{ deploy_gitea_runner_arch_map[ansible_distribution] }}"
|
||||
dest: "{{ hashi_consul_envoy_path }}"
|
||||
url: "{{ deploy_gitea_runner_gitea_url }}/releases/download/v{{ deploy_gitea_runner_wanted_version }}/act_runner-{{ deploy_gitea_runner_wanted_version }}-linux-{{ deploy_gitea_runner_arch_map[ansible_architecture] }}"
|
||||
dest: "{{ deploy_gitea_runner_path }}"
|
||||
force: true
|
||||
owner: root
|
||||
group: root
|
||||
|
@ -5,3 +5,6 @@
|
||||
|
||||
- name: "Import configure.yml"
|
||||
ansible.builtin.include_tasks: configure.yml
|
||||
|
||||
- name: "Import install.yml"
|
||||
ansible.builtin.include_tasks: "install_{{ deploy_gitea_runner_deploy_method }}.yml"
|
||||
|
Loading…
Reference in New Issue
Block a user