Commit a2f001ac by Joe Blaylock

Create in_production role for live site final jobs

* Removes HTTP basic auth
parent dee88625
......@@ -10,3 +10,5 @@
- lms
- ruby
- npm
# run this role last
- in_production
# requires:
# - group_vars/all
# - common/tasks/main.yml
# - nginx/tasks/main.yml
# - lms/tasks/main.yml
# - ruby/tasks/main.yml
# - npm/tasks/main.yml
---
- name: Make sure LMS is running
service: name=lms state=started
tags:
- production
- name: Disable HTTP Basic Auth on site
file: path=/etc/nginx/sites-enabled/basic-auth state=absent
notify: restart nginx
tags:
- production
......@@ -8,12 +8,17 @@
tags:
- nginx
# removing default link
- name: Removing default nginx config
- name: Removing default nginx config (enabled)
sudo: True
file: path=/etc/nginx/sites-available/default state=absent
file: path=/etc/nginx/sites-enabled/default state=absent
notify: restart nginx
tags:
- nginx
- name: Removing default nginx config (available)
sudo: True
file: path=/etc/nginx/sites-available/default state=absent
tags:
- nginx
# Standard configuration that is common across all roles
# Default values for these variables are set in group_vars/all
# Note: remove spaces in {{..}}, otherwise you will get a template parsing error.
......
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