chore: use official openresty repository
This commit is contained in:
parent
86ea3ca56f
commit
4d71d14d25
@ -1,12 +1,22 @@
|
||||
- name: Install prerequisites for OpenResty
|
||||
apt:
|
||||
name: software-properties-common
|
||||
name:
|
||||
- curl
|
||||
- gnupg
|
||||
- apt-transport-https
|
||||
state: present
|
||||
update_cache: yes
|
||||
|
||||
- name: Import OpenResty GPG key
|
||||
command: >-
|
||||
bash -c 'curl -fsSL https://openresty.org/package/pubkey.gpg | gpg --dearmor -o /usr/share/keyrings/openresty.gpg'
|
||||
args:
|
||||
creates: /usr/share/keyrings/openresty.gpg
|
||||
|
||||
- name: Add OpenResty apt repository
|
||||
apt_repository:
|
||||
repo: ppa:openresty/ppa
|
||||
repo: "deb [signed-by=/usr/share/keyrings/openresty.gpg] http://openresty.org/package/ubuntu jammy main"
|
||||
filename: openresty
|
||||
state: present
|
||||
|
||||
- name: Install OpenResty
|
||||
|
||||
Loading…
Reference in New Issue
Block a user