2019-11-25 00:50:21 +00:00
|
|
|
---
|
2020-10-12 02:40:15 +00:00
|
|
|
- name: gather os specific variables
|
2020-08-22 14:56:22 +00:00
|
|
|
include_vars: "{{ lookup('first_found', possible_files) }}"
|
|
|
|
vars:
|
|
|
|
possible_files:
|
|
|
|
files:
|
2020-10-12 02:40:15 +00:00
|
|
|
- "{{ 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
|
|
|
|
|
2020-10-12 02:40:15 +00:00
|
|
|
- name: include os specific tasks
|
|
|
|
include_tasks: "{{ lookup('first_found', possible_files) }}"
|
|
|
|
vars:
|
|
|
|
possible_files:
|
|
|
|
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
|
|
|
|
2020-10-12 02:40:15 +00:00
|
|
|
- include: pre.yaml
|
2019-11-25 00:50:21 +00:00
|
|
|
|
2020-10-12 02:40:15 +00:00
|
|
|
- include: install.yaml
|
|
|
|
when:
|
|
|
|
- gitea_version is version(gitea_local_version, '>')
|
2019-11-25 00:50:21 +00:00
|
|
|
|
2020-10-12 02:40:15 +00:00
|
|
|
- include: configure.yaml
|
2019-11-25 00:50:21 +00:00
|
|
|
|
2020-10-12 02:40:15 +00:00
|
|
|
- include: nginx.yaml
|
|
|
|
when: '"nginx" in ansible_play_role_names'
|