Commit c30ef5a7 by John Jarvis

adding logrotate handler, removing nginx_site

parent 689fe8df
...@@ -8,7 +8,15 @@ ...@@ -8,7 +8,15 @@
openid_workaround: True openid_workaround: True
roles: roles:
- common - common
- nginx - role: nginx
nginx_sites:
- cms
- discern
- lms
- lms-preview
- ora
- xqueue
- xserver
- edxlocal - edxlocal
- edxapp - edxapp
- { role: 'rabbitmq', rabbitmq_ip: '127.0.0.1' } - { role: 'rabbitmq', rabbitmq_ip: '127.0.0.1' }
......
...@@ -2,3 +2,9 @@ ...@@ -2,3 +2,9 @@
- name: common | restart rsyslogd - name: common | restart rsyslogd
service: name=rsyslog state=restarted service: name=rsyslog state=restarted
sudo: True sudo: True
- name: common | restart logrotate
service: name=logrotate state=restarted
sudo: True
...@@ -16,8 +16,31 @@ ...@@ -16,8 +16,31 @@
- nginx - nginx
- install - install
# Default configuration that is common across all roles - name: nginx | Creating common nginx configuration
- include: nginx_site.yml state=link site_name=edx-release template: src={{ item }} dest=/etc/nginx/sites-available/edx-release.j2 owner=root group=root mode=0600
notify: nginx | reload nginx
tags:
- nginx
- name: nginx | Creating link for common nginx configuration
file: src=/etc/nginx/sites-available/edx-release dest=/etc/nginx/sites-enabled/edx-release state=link owner=root group=root
notify: nginx | reload nginx
tags:
- nginx
- name: nginx | Copying nginx config {{ site_name }}
template: src={{ item }} dest=/etc/nginx/sites-available/{{ site_name }} owner=root group=root mode=0600
notify: nginx | reload nginx
with_items: nginx_sites
tags:
- nginx
- name: nginx | Creating nginx config link {{ site_name }}
file: src=/etc/nginx/sites-available/{{ site_name }} dest=/etc/nginx/sites-enabled/{{ site_name }} state=link owner=root group=root
notify: nginx | reload nginx
with_items: nginx_sites
tags:
- nginx
- name: nginx | Write out default htpasswd file - name: nginx | Write out default htpasswd file
copy: content={{ nginx_cfg.htpasswd }} dest=/etc/nginx/nginx.htpasswd owner=www-data group=www-data mode=0600 copy: content={{ nginx_cfg.htpasswd }} dest=/etc/nginx/nginx.htpasswd owner=www-data group=www-data mode=0600
......
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