27:1a8b9c306e43
Anton Shestakov <av6@dwimlabs.net>, Sun, 25 Jun 2017 18:19:24 +0800
nginx: fail_timeout is ignored if there's only one server in the group

next change 28:b9b512011418
previous change 18:464f9dec4e2f

roles/hgweb/tasks/main.yml

Permissions: -rw-r--r--

Other formats: Feeds:
---
- name: Create user
user:
name: '{{ hgweb_user }}'
- name: Install packages
apt:
pkg: '{{ item }}'
state: present
with_items:
- build-essential
- mercurial
- python-dev
- python-virtualenv
tags: [packages, inert]
- name: Install virtualenv
apt:
pkg: virtualenv
state: present
when: ansible_distribution_release == 'jessie'
tags: [packages, inert]
- include: appinstall.yml
become: yes
become_user: '{{ hgweb_user }}'
- name: Add supervisor app
template:
src: etc/supervisor/conf.d/hgweb.conf
dest: /etc/supervisor/conf.d/hgweb.conf
notify:
- reload supervisor
- name: Add {{ hgweb_subdomain }}.{{ hostname }} Nginx site
template:
src: etc/nginx/sites-available/hgweb
dest: /etc/nginx/sites-available/{{ hgweb_subdomain }}.{{ hostname }}
notify:
- restart nginx
- name: Enable {{ hgweb_subdomain }}.{{ hostname }} Nginx site
file:
src: /etc/nginx/sites-available/{{ hgweb_subdomain }}.{{ hostname }}
dest: /etc/nginx/sites-enabled/50{{ hgweb_subdomain }}.{{ hostname }}
state: link
notify:
- restart nginx
...