Sha256: 309b6430987e74c9104cd53a265a15d7424db3d49e3c09124a670c591473e0f6

Contents?: true

Size: 876 Bytes

Versions: 11

Compression:

Stored size: 876 Bytes

Contents

- name: Enable nginx PPA
  apt_repository: repo=ppa:nginx/stable
  tags: [nginx]

- name: Install nginx
  apt: name=nginx state=present
  tags: [nginx]

- name: Ditch default nginx site enabled
  file: path=/etc/nginx/sites-enabled/default state=absent
  tags: [nginx]

- name: Configure App nginx
  template: src=nginx_unicorn.j2 dest=/etc/nginx/sites-enabled/{{ app_name }}
  tags: [nginx]

- name: Install monit nginx config
  template: src=nginx_monit.j2
            dest=/etc/monit/conf.d/nginx
            mode=u=rw,g=r,o=r
  register: nginx_monit_config

- name: Reload Monit
  command: bash -lc "monit reload && sleep 2"
  when: nginx_monit_config.changed

- name: Stop nginx
  service: name=nginx state=stopped
  tags: [restart_nginx]

- name: Start nginx
  remote_user: "{{ deployer_user.name }}"
  command: bash -lc "sudo monit start nginx"
  tags: [restart_nginx]

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
taperole-1.4.3 roles/nginx/tasks/main.yml
taperole-1.4.2 roles/nginx/tasks/main.yml
taperole-1.4.1 roles/nginx/tasks/main.yml
taperole-1.4.0 roles/nginx/tasks/main.yml
taperole-1.3.6 roles/nginx/tasks/main.yml
taperole-1.3.5 roles/nginx/tasks/main.yml
taperole-1.3.4 roles/nginx/tasks/main.yml
taperole-1.3.3 roles/nginx/tasks/main.yml
taperole-1.3.2 roles/nginx/tasks/main.yml
taperole-1.3.1 roles/nginx/tasks/main.yml
taperole-1.3.0 roles/nginx/tasks/main.yml