Sha256: 6653173f23bc229e3dc045c412ed7ab058804924c342d12c4bd763a03810f9f4

Contents?: true

Size: 864 Bytes

Versions: 4

Compression:

Stored size: 864 Bytes

Contents

---
- name: Remove the app's symlink, if exists
  command: rm -rf /etc/nginx/sites-enabled/{{project_name}}
  become: true

- 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 | ternary('absent', 'link')}}"
  become: true

- name: create nginx config for rails app
  template:
    src: nginx-project-ssl
    dest: /etc/nginx/sites-available/{{project_name}}-ssl
  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 | ternary('link', 'absent')}}"
  become: true

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
subspace-0.4.3 ansible/roles/nginx-rails/tasks/main.yml
subspace-0.4.2 ansible/roles/nginx-rails/tasks/main.yml
subspace-0.4.1 ansible/roles/nginx-rails/tasks/main.yml
subspace-0.4.0 ansible/roles/nginx-rails/tasks/main.yml