Commit 2b2c1d21 by Max Rothman

SEC-79: Install nginx from their ppa

This change allows us to install nginx from nginx's ppa as per their
instructions at http://nginx.org/en/linux_packages.html
parent 77aa67d7
...@@ -49,6 +49,7 @@ NGINX_SERVER_HTML_FILES: ...@@ -49,6 +49,7 @@ NGINX_SERVER_HTML_FILES:
nginx_app_dir: "{{ COMMON_APP_DIR }}/nginx" nginx_app_dir: "{{ COMMON_APP_DIR }}/nginx"
nginx_data_dir: "{{ COMMON_DATA_DIR }}/nginx" nginx_data_dir: "{{ COMMON_DATA_DIR }}/nginx"
nginx_server_static_dir: "{{ nginx_data_dir }}/server-static" nginx_server_static_dir: "{{ nginx_data_dir }}/server-static"
...@@ -60,7 +61,6 @@ nginx_user: root ...@@ -60,7 +61,6 @@ nginx_user: root
nginx_htpasswd_file: "{{ nginx_app_dir }}/nginx.htpasswd" nginx_htpasswd_file: "{{ nginx_app_dir }}/nginx.htpasswd"
nginx_default_sites: [] nginx_default_sites: []
nginx_debian_pkgs: nginx_debian_pkgs:
- nginx
- python-passlib - python-passlib
NGINX_EDXAPP_ENABLE_S3_MAINTENANCE: False NGINX_EDXAPP_ENABLE_S3_MAINTENANCE: False
......
...@@ -33,8 +33,37 @@ ...@@ -33,8 +33,37 @@
- install - install
- install:configuration - install:configuration
- name: Install nginx packages - name: Install needed packages
apt: pkg={{','.join(nginx_debian_pkgs)}} state=present apt: pkg={{ item }} state=present
notify: restart nginx
with_items: nginx_debian_pkgs
tags:
- install
- install:system-requirements
- name: Add apt key
apt_key:
url: http://nginx.org/keys/nginx_signing.key
state: present
notify: restart nginx
tags:
- install
- install:system-requirements
- name: Add nginx repository
apt_repository:
repo: deb http://nginx.org/packages/ubuntu/ {{ ansible_distribution_release }} nginx
state: present
notify: restart nginx
tags:
- install
- install:system-requirements
- name: Install the nginx package
apt:
name: nginx
state: latest
update_cache: yes
notify: restart nginx notify: restart nginx
tags: tags:
- install - install
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment