Skip to content

Commit

Permalink
Use official Nginx apt packages
Browse files Browse the repository at this point in the history
  • Loading branch information
swalkinshaw committed Jun 25, 2020
1 parent d2bd6a3 commit dec94e2
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
4 changes: 3 additions & 1 deletion roles/nginx/defaults/main.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
---
nginx_ppa: "ppa:ondrej/nginx-mainline"
nginx_keyserver: "https://nginx.org/keys/nginx_signing.key"
nginx_keyserver_id: "ABF5BD827BD9BF62"
nginx_ppa: "deb http://nginx.org/packages/mainline/ubuntu {{ ansible_distribution_release }} nginx"
nginx_package: nginx
nginx_conf: nginx.conf.j2
nginx_path: /etc/nginx
Expand Down
5 changes: 5 additions & 0 deletions roles/nginx/tasks/main.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
---
- name: Add Nginx APT key
apt_key:
keyserver: "{{ nginx_keyserver }}"
id: "{{ nginx_keyserver_id }}"

- name: Add Nginx PPA
apt_repository:
repo: "{{ nginx_ppa }}"
Expand Down

0 comments on commit dec94e2

Please sign in to comment.