2019-08-03 12:53:21 +02:00
|
|
|
---
|
|
|
|
- name: Converge
|
|
|
|
hosts: all
|
2019-11-03 15:07:38 +01:00
|
|
|
pre_tasks:
|
2019-11-22 15:52:34 +01:00
|
|
|
- name: "Set repo if Alpine"
|
|
|
|
set_fact:
|
|
|
|
version: "=1.17.6-r1"
|
|
|
|
when: ansible_os_family == "Alpine"
|
2019-11-03 15:07:38 +01:00
|
|
|
- name: "Set repo if Debian"
|
|
|
|
set_fact:
|
2019-11-21 19:53:30 +01:00
|
|
|
version: "=1.17.6-1~{{ ansible_distribution_release }}"
|
2019-11-03 15:07:38 +01:00
|
|
|
when: ansible_os_family == "Debian"
|
|
|
|
- name: "Set repo if RedHat"
|
|
|
|
set_fact:
|
2019-11-21 19:53:30 +01:00
|
|
|
version: "-1.17.6-1.el{{ ansible_distribution_major_version }}.ngx"
|
2019-11-03 15:07:38 +01:00
|
|
|
when: ansible_os_family == "RedHat"
|
2019-08-03 12:53:21 +02:00
|
|
|
roles:
|
|
|
|
- role: ansible-role-nginx
|
2019-11-03 15:07:38 +01:00
|
|
|
vars:
|
|
|
|
nginx_version: "{{ version }}"
|