This commit is contained in:
2023-03-09 18:02:25 +03:00
commit a81f423baa
93 changed files with 2357 additions and 0 deletions

View File

@ -0,0 +1,9 @@
- name: restart nginx
service:
name: nginx
state: restarted
- name: start nginx
service:
name: nginx
state: started

View File

@ -0,0 +1,34 @@
- 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