Install nginx with Ansible
Very basic nginx installation with best practices concerning SSL/TLS and global Let's Encrypt, doesn't manage certs and vhosts therefore see certbot and nginx role.
See the full example for a complete playbook.
TODO
- use pregenerated dhparams https://wiki.mozilla.org/Security/Server_Side_TLS#Pre-defined_DHE_groups
Requirements
None.
Example playbook
- hosts: all
become: yes
roles:
- nginx
Role variables
None of the variables below are required.
Variable | Default | Comment |
---|
For all options see defaults/main.yml
Development
You can use the Vagrantfile for local testing, just install vagrant and virtualbox and execute the following commands:
vagrant up
vagrant provision
License
MIT