35 lines
856 B
YAML
35 lines
856 B
YAML
- name: Install dependencies
|
|
apt:
|
|
pkg:
|
|
- curl
|
|
- gnupg2
|
|
- ca-certificates
|
|
- lsb-release
|
|
- ubuntu-keyring
|
|
state: present
|
|
update_cache: true
|
|
|
|
- name: Import nginx key
|
|
apt_key:
|
|
url: https://nginx.org/keys/nginx_signing.key
|
|
state: present
|
|
|
|
- name: Setup repository
|
|
ansible.builtin.apt_repository:
|
|
repo: "deb [signed-by=/usr/share/keyrings/nginx-archive-keyring.gpg] https://packages.nginx.org/nginx-quic/ubuntu {{ ansible_facts['distribution_release'] }} nginx-quic"
|
|
state: present
|
|
filename: nginx-quic
|
|
|
|
- name: Install nginx
|
|
apt:
|
|
pkg:
|
|
- nginx-quic
|
|
- nginx-quic-module-geoip
|
|
- nginx-quic-module-image-filter
|
|
- nginx-quic-module-njs
|
|
- nginx-quic-module-perl
|
|
- nginx-quic-module-xslt
|
|
state: present
|
|
update_cache: true
|
|
notify: start nginx
|