Sha256: 6b6296ce5bb5893cd7344f289bb70412c23a5bfa7c3bd5be1c484b5e3ec69d9d
Contents?: true
Size: 791 Bytes
Versions: 2
Compression:
Stored size: 791 Bytes
Contents
- name: Install nginx apt: pkg=nginx state=latest become: true - name: Remove the default app command: rm -rf /etc/nginx/sites-enabled/default become: true - name: Remove the app's config, if exists command: rm -rf /etc/nginx/sites-enabled/default become: true - name: Remove the app's symlink, if exists command: rm -rf /etc/nginx/sites-enabled/{{project_name}} become: true - name: Configure nginx for the app template: src=nginx-project dest=/etc/nginx/sites-available/{{project_name}} group=www-data owner=www-data force=yes become: true - name: Enable the app command: ln -s /etc/nginx/sites-available/{{project_name}} /etc/nginx/sites-enabled/{{project_name}} become: true - name: Restart nginx action: service name=nginx state=restarted become: true
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
subspace-0.3.0 | ansible/roles/nginx/tasks/main.yml |
subspace-0.2.1 | ansible/roles/nginx/tasks/main.yml |