ansible/roles/gitea/tasks/main.yaml

36 lines
1012 B
YAML
Raw Permalink Normal View History

2019-11-25 00:50:21 +00:00
---
- name: gather os specific variables
2022-08-31 03:19:06 +00:00
ansible.builtin.include_vars: "{{ lookup('first_found', params) }}"
2020-08-22 14:56:22 +00:00
vars:
2022-08-31 03:19:06 +00:00
params:
2020-08-22 14:56:22 +00:00
files:
- "{{ ansible_distribution }}-{{ ansible_distribution_version }}.yaml"
- "{{ ansible_distribution }}.yaml"
- "{{ ansible_os_family }}.yaml"
2020-08-22 14:56:22 +00:00
- "default.yaml"
paths:
- vars
- name: include os specific tasks
2022-08-31 03:19:06 +00:00
ansible.builtin.include_tasks: "{{ lookup('first_found', params) }}"
vars:
2022-08-31 03:19:06 +00:00
params:
files:
- "{{ ansible_distribution }}-{{ ansible_distribution_version }}.yaml"
- "{{ ansible_distribution }}.yaml"
- "{{ ansible_os_family }}.yaml"
- "default.yaml"
paths:
- tasks
2019-11-25 00:50:21 +00:00
2022-08-31 03:19:06 +00:00
- ansible.builtin.include_tasks: pre.yaml
2019-11-25 00:50:21 +00:00
2022-08-31 03:19:06 +00:00
- ansible.builtin.include_tasks: install.yaml
when:
- gitea_version is version(gitea_local_version, '>')
2019-11-25 00:50:21 +00:00
2022-08-31 03:19:06 +00:00
- ansible.builtin.include_tasks: configure.yaml
2019-11-25 00:50:21 +00:00
2022-08-31 03:19:06 +00:00
- ansible.builtin.include_tasks: nginx.yaml
when: '"nginx" in ansible_play_role_names'