Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
configuration
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenEdx
configuration
Commits
6a76c679
Commit
6a76c679
authored
Apr 22, 2013
by
John Jarvis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixing yaml syntax for include statement
adding names to the nginx config playbook output
parent
3bc8c202
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
4 deletions
+5
-4
playbooks/roles/nginx/tasks/main.yml
+3
-2
playbooks/roles/nginx/tasks/nginx_site.yml
+2
-2
No files found.
playbooks/roles/nginx/tasks/main.yml
View file @
6a76c679
...
...
@@ -12,8 +12,9 @@
notify
:
restart nginx
# Standard configuration that is common across all roles
# Default values for these variables are set in group_vars/all
-
include
:
nginx_site.yml state="{{ nginx_cfg.sites_enabled.edx_release }}" site_name=edx-release
-
include
:
nginx_site.yml state="{{ nginx_cfg.sites_enabled.basic_auth }}" site_name=basic-auth
# Note: remove spaces in {{..}}, otherwise you will get a template parsing error.
-
include
:
nginx_site.yml state={{nginx_cfg.sites_enabled.edx_release}} site_name=edx-release
-
include
:
nginx_site.yml state={{nginx_cfg.sites_enabled.basic_auth}} site_name=basic-auth
# Default htpassword file, required for basic auth
-
copy
:
content={{ nginx_cfg.htpasswd }} dest=/etc/nginx/nginx.htpasswd
sudo
:
True
...
...
playbooks/roles/nginx/tasks/nginx_site.yml
View file @
6a76c679
# Requires nginx package
---
-
name
:
Copying nginx config
-
name
:
Copying nginx config
{{ site_name }}
sudo
:
True
template
:
src={{ site_name }}.j2 dest=/etc/nginx/sites-available/{{ site_name }}
notify
:
restart nginx
-
name
:
Creating nginx config link
-
name
:
Creating nginx config link
{{ site_name }}
sudo
:
True
file
:
src=/etc/nginx/sites-available/{{ site_name }} dest=/etc/nginx/sites-enabled/{{ site_name }} state={{ state }} owner=root group=root
notify
:
restart nginx
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment