2018-01-10 23:40:01 +01:00
|
|
|
---
|
2018-01-26 20:00:26 +01:00
|
|
|
- name: "(Install: CentOS/RedHat/Amazon Linux/Oracle Linux) Gather Distribution Version"
|
2018-01-10 23:40:01 +01:00
|
|
|
set_fact:
|
|
|
|
version: "6"
|
|
|
|
when: ansible_distribution_major_version|int == 6
|
|
|
|
|
2018-01-26 20:00:26 +01:00
|
|
|
- name: "(Install: CentOS/RedHat/Amazon Linux/Oracle Linux) Gather Distribution Version"
|
2018-01-10 23:40:01 +01:00
|
|
|
set_fact:
|
|
|
|
version: "7"
|
2018-01-19 19:27:47 +01:00
|
|
|
when: ansible_distribution_major_version|float >= 7.0 and ansible_distribution_major_version|float <= 7.3
|
2018-01-10 23:40:01 +01:00
|
|
|
|
2018-01-26 20:00:26 +01:00
|
|
|
- name: "(Install: CentOS/RedHat/Amazon Linux/Oracle Linux) Gather Distribution Version"
|
2018-01-10 23:40:01 +01:00
|
|
|
set_fact:
|
|
|
|
version: "7.4"
|
2018-01-19 19:27:47 +01:00
|
|
|
when: ansible_distribution_major_version|float == 7.4
|
2018-01-10 23:40:01 +01:00
|
|
|
|
2018-01-26 20:00:26 +01:00
|
|
|
- name: "(Install: CentOS/RedHat/Amazon Linux/Oracle Linux) Gather Distribution Version"
|
2018-01-10 23:40:01 +01:00
|
|
|
set_fact:
|
|
|
|
version: "amazon"
|
|
|
|
when: ansible_distribution == "Amazon"
|
|
|
|
|
2018-01-26 20:00:26 +01:00
|
|
|
- name: "(Install: CentOS/RedHat/Amazon Linux/Oracle Linux) Add NGINX Plus Repository"
|
2018-01-10 23:40:01 +01:00
|
|
|
get_url:
|
|
|
|
url: https://cs.nginx.com/static/files/nginx-plus-{{ version }}.repo
|
|
|
|
dest: /etc/yum.repos.d/nginx-plus-{{ version }}.repo
|