2018-01-10 23:40:01 +01:00
|
|
|
---
|
2019-12-11 21:45:12 +01:00
|
|
|
- name: "(Setup: Debian/Ubuntu) Setup NGINX Plus Repository"
|
2018-03-02 01:15:27 +01:00
|
|
|
apt_repository:
|
2019-05-21 17:23:06 +02:00
|
|
|
repo: deb https://plus-pkgs.nginx.com/{{ ansible_distribution | lower }} {{ ansible_distribution_release }} nginx-plus
|
2018-03-02 01:15:27 +01:00
|
|
|
filename: nginx-plus
|
|
|
|
update_cache: no
|
2019-12-11 21:45:12 +01:00
|
|
|
state: "{{ nginx_license_status | default ('present') }}"
|
2018-01-10 23:40:01 +01:00
|
|
|
|
2019-12-11 21:45:12 +01:00
|
|
|
- name: "(Setup: Debian/Ubuntu) Setup NGINX Plus License"
|
2018-03-02 01:15:27 +01:00
|
|
|
blockinfile:
|
|
|
|
path: /etc/apt/apt.conf.d/90nginx
|
|
|
|
create: yes
|
|
|
|
block: |
|
|
|
|
Acquire::https::plus-pkgs.nginx.com::Verify-Peer "true";
|
|
|
|
Acquire::https::plus-pkgs.nginx.com::Verify-Host "true";
|
|
|
|
Acquire::https::plus-pkgs.nginx.com::SslCert "/etc/ssl/nginx/nginx-repo.crt";
|
|
|
|
Acquire::https::plus-pkgs.nginx.com::SslKey "/etc/ssl/nginx/nginx-repo.key";
|
2019-12-11 21:45:12 +01:00
|
|
|
state: "{{ nginx_license_status | default ('present') }}"
|
2018-01-10 23:40:01 +01:00
|
|
|
|
2019-12-11 21:45:12 +01:00
|
|
|
- name: "(Setup: Debian/Ubuntu) Update APT Cache"
|
2018-01-10 23:40:01 +01:00
|
|
|
apt:
|
|
|
|
update_cache: yes
|