42 lines
1.3 KiB
YAML
42 lines
1.3 KiB
YAML
---
|
|
- name: Set common facts
|
|
ansible.builtin.import_tasks: tasks/set-default-facts.yml
|
|
|
|
- name: Deploy {{ role_name }}
|
|
vars:
|
|
svc: "{{ forgejo_svc }}"
|
|
compose: "{{ forgejo_compose }}"
|
|
block:
|
|
- name: Import prepare tasks for common service
|
|
ansible.builtin.import_tasks: tasks/prepare-common-service.yml
|
|
|
|
- name: Create the app.ini file
|
|
ansible.builtin.copy:
|
|
dest: "{{ (service_path, 'app.ini') | path_join }}"
|
|
content: '{{ forgejo_ini | to_ini }}'
|
|
mode: "0644"
|
|
notify: Restart service {{ role_name }}
|
|
|
|
- name: Copy the template files
|
|
ansible.builtin.copy:
|
|
src: templates/
|
|
dest: "{{ (service_path, 'templates') | path_join }}"
|
|
mode: "0644"
|
|
notify: Restart service {{ role_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 }}
|
|
|
|
- name: Copy the public files
|
|
ansible.builtin.copy:
|
|
src: public/
|
|
dest: "{{ (service_path, 'public') | path_join }}"
|
|
mode: "0644"
|
|
notify: Restart service {{ role_name }}
|
|
|
|
- name: Import start tasks for common service
|
|
ansible.builtin.import_tasks: tasks/start-common-service.yml
|