Sha256: aeb192ed535a7c2cd7fc718e9133213262775273931ca4c15cd86d83c85eaf01

Contents?: true

Size: 818 Bytes

Versions: 2

Compression:

Stored size: 818 Bytes

Contents

- name: Install nginx
  apt: pkg=nginx state=latest
  become: true

- name: Remove the default app
  file:
    path: /etc/nginx/sites-enabled/default
    state: absent
  become: true

- name: "Configure rails projects"
  import_role:
    name: nginx-rails

- name: create nginx status config
  template:
    src: status
    dest: /etc/nginx/sites-available/status
  become: true

- name: enable nginx status
  file:
    src: /etc/nginx/sites-available/status
    dest: /etc/nginx/sites-enabled/status
    state: link
  become: true

- name: Restart nginx (systemd)
  become: true
  systemd:
    state: restarted
    daemon_reload: yes
    name: nginx

- name: Enable nginx to start on reboot
  become: true
  systemd:
    name: nginx
    enabled: true

- name: Nginx is installed
  set_fact:
    nginx_installed: true

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
subspace-3.0.0 ansible/roles/nginx/tasks/main.yml
subspace-3.0.0.rc1 ansible/roles/nginx/tasks/main.yml