Sha256: 294d2f27b4ce3976779b163ddc35e90f1919dc683b75b0cb04cbc6da2eaf7287

Contents?: true

Size: 771 Bytes

Versions: 1

Compression:

Stored size: 771 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 }}
  notify: restart nginx
  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"
  when: nginx_monit_config.changed

- name: Restart nginx
  command: bash -lc "sudo monit restart nginx"
  tags: [restart_nginx]

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
taperole-1.0.0 roles/nginx/tasks/main.yml