Sha256: 5bcf18dc7576546586b0aa31854adeadcc93b1688c6542dab5d8cdcd730c4570

Contents?: true

Size: 962 Bytes

Versions: 9

Compression:

Stored size: 962 Bytes

Contents

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

- name: Disable Server tokens
  lineinfile:
    path: /etc/nginx/nginx.conf
    regexp: '# server_tokens off'
    line: "\tserver_tokens off;"

- 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

9 entries across 9 versions & 1 rubygems

Version Path
subspace-3.0.12 ansible/roles/nginx/tasks/main.yml
subspace-3.0.11 ansible/roles/nginx/tasks/main.yml
subspace-3.0.10 ansible/roles/nginx/tasks/main.yml
subspace-3.0.9 ansible/roles/nginx/tasks/main.yml
subspace-3.0.6 ansible/roles/nginx/tasks/main.yml
subspace-3.0.5 ansible/roles/nginx/tasks/main.yml
subspace-3.0.4 ansible/roles/nginx/tasks/main.yml
subspace-3.0.3 ansible/roles/nginx/tasks/main.yml
subspace-3.0.2 ansible/roles/nginx/tasks/main.yml