You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.
ansible-role-nginx/molecule/default/converge.yml

31 lines
842 B

---
- name: Converge
hosts: all
remote_user: ansible
become: yes
vars:
nginx_use_ppa: true
nginx_remove_default_vhost: true
nginx_vhosts:
- server_names:
- "localhost"
upstream:
name: local
server: localhost:8000
template: django-vhost.j2
extra_snippets:
- location: "~* /static/(.*\\.)(js|css)"
expiries: 365d
alias: "/var/www/static/$1$2"
template: cache-snippet.j2
enable_https: true
filename: localhost-django.conf
static_root: /var/www/static/
media_root: /var/www/media/
certificate: /etc/nginx/ssl/fullchain.pem # selfsigned
private_key: /etc/nginx/ssl/privkey.pem # selfsigned
pre_tasks:
- debug:
var: ansible_python
roles:
- role: nginx