Replace role_name with service_name
This commit is contained in:
parent
bdf1f8891b
commit
2ff6488a70
98 changed files with 128 additions and 124 deletions
|
|
@ -6,7 +6,7 @@ forgejo_oauth2_jwt_secret: "{{ undef() }}"
|
|||
forgejo_umami: "{{ undef() }}"
|
||||
|
||||
forgejo_svc:
|
||||
domain: "{{ all_services | service_get_domain(role_name) }}"
|
||||
domain: "{{ all_services | service_get_domain(service_name) }}"
|
||||
port: 3000
|
||||
caddy_extra: |
|
||||
import analytics
|
||||
|
|
|
|||
|
|
@ -1,3 +1,3 @@
|
|||
---
|
||||
- name: Restart service {{ role_name }}
|
||||
- name: Restart service {{ service_name }}
|
||||
ansible.builtin.include_tasks: tasks/restart-service.yml
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
- name: Set common facts
|
||||
ansible.builtin.import_tasks: tasks/set-default-facts.yml
|
||||
|
||||
- name: Deploy {{ role_name }}
|
||||
- name: Deploy {{ service_name }}
|
||||
vars:
|
||||
svc: "{{ forgejo_svc }}"
|
||||
compose: "{{ forgejo_compose }}"
|
||||
|
|
@ -15,28 +15,28 @@
|
|||
dest: "{{ (service_path, 'app.ini') | path_join }}"
|
||||
content: '{{ forgejo_ini | community.general.to_ini }}'
|
||||
mode: "0644"
|
||||
notify: Restart service {{ role_name }}
|
||||
notify: Restart service {{ service_name }}
|
||||
|
||||
- name: Copy the template files
|
||||
ansible.builtin.copy:
|
||||
src: templates/
|
||||
dest: "{{ (service_path, 'templates') | path_join }}"
|
||||
mode: "0644"
|
||||
notify: Restart service {{ role_name }}
|
||||
notify: Restart service {{ service_name }}
|
||||
|
||||
- name: Template the custom footer
|
||||
ansible.builtin.template:
|
||||
src: footer.tmpl.j2
|
||||
dest: "{{ (service_path, 'templates', 'custom', 'footer.tmpl') | path_join }}"
|
||||
mode: "0644"
|
||||
notify: Restart service {{ role_name }}
|
||||
notify: Restart service {{ service_name }}
|
||||
|
||||
- name: Copy the public files
|
||||
ansible.builtin.copy:
|
||||
src: public/
|
||||
dest: "{{ (service_path, 'public') | path_join }}"
|
||||
mode: "0644"
|
||||
notify: Restart service {{ role_name }}
|
||||
notify: Restart service {{ service_name }}
|
||||
|
||||
- name: Import start tasks for common service
|
||||
ansible.builtin.import_tasks: tasks/start-common-service.yml
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue