Sha256: a3f97a7e17f0c42eb9545ef46b3cd86a9256a2332dd5dd0459b1b1801a2ea0e2

Contents?: true

Size: 872 Bytes

Versions: 38

Compression:

Stored size: 872 Bytes

Contents

---
- name: create nginx config for rails app
  template:
    src: nginx-project
    dest: /etc/nginx/sites-available/{{project_name}}
  become: true

- name: Enable the app
  file:
    src: /etc/nginx/sites-available/{{project_name}}
    dest: /etc/nginx/sites-enabled/{{project_name}}
    state: "{{ (ssl_enabled and nginx_ssl_config is defined) | ternary('absent', 'link') }}"
  become: true

- name: create ssl nginx config for rails app
  template:
    src: nginx-project-ssl
    dest: /etc/nginx/sites-available/{{project_name}}-ssl
  when: (ssl_enabled and nginx_ssl_config is defined)
  become: true

- name: Enable SSL configured app
  file:
    src: /etc/nginx/sites-available/{{project_name}}-ssl
    dest: /etc/nginx/sites-enabled/{{project_name}}-ssl
    state: "{{ (ssl_enabled and nginx_ssl_config is defined) | ternary('link', 'absent') }}"
  become: true

Version data entries

38 entries across 38 versions & 1 rubygems

Version Path
subspace-2.3.3 ansible/roles/nginx-rails/tasks/main.yml
subspace-2.3.2 ansible/roles/nginx-rails/tasks/main.yml
subspace-2.3.1 ansible/roles/nginx-rails/tasks/main.yml
subspace-2.3.0 ansible/roles/nginx-rails/tasks/main.yml
subspace-2.2.3 ansible/roles/nginx-rails/tasks/main.yml
subspace-2.2.2 ansible/roles/nginx-rails/tasks/main.yml
subspace-2.2.1 ansible/roles/nginx-rails/tasks/main.yml
subspace-2.2.0 ansible/roles/nginx-rails/tasks/main.yml
subspace-2.1.2 ansible/roles/nginx-rails/tasks/main.yml
subspace-2.1.1 ansible/roles/nginx-rails/tasks/main.yml
subspace-2.1.0 ansible/roles/nginx-rails/tasks/main.yml
subspace-2.0.4 ansible/roles/nginx-rails/tasks/main.yml
subspace-2.0.3 ansible/roles/nginx-rails/tasks/main.yml
subspace-2.0.2 ansible/roles/nginx-rails/tasks/main.yml
subspace-2.0.1 ansible/roles/nginx-rails/tasks/main.yml
subspace-2.0.0 ansible/roles/nginx-rails/tasks/main.yml
subspace-1.0.8 ansible/roles/nginx-rails/tasks/main.yml
subspace-1.0.7 ansible/roles/nginx-rails/tasks/main.yml
subspace-1.0.6 ansible/roles/nginx-rails/tasks/main.yml
subspace-1.0.5 ansible/roles/nginx-rails/tasks/main.yml