Issue #83: Move vars for https-self-signed example into separate file.

This commit is contained in:
Jeff Geerling
2017-12-29 21:38:22 -06:00
parent 173e00ecaa
commit 84e8d02efc
3 changed files with 24 additions and 22 deletions
+1 -1
View File
@@ -1,4 +1,4 @@
# HTTPS Demonstration VM
# HTTPS Self-Signed Certificate Demo VM
This project spins up a VM and demonstrates generating self-signed certificates locally, or Let's Encrypt certificates on a public server.
+2 -21
View File
@@ -1,27 +1,8 @@
---
- hosts: all
vars:
# Firewall settings.
firewall_allowed_tcp_ports:
- "22"
- "80"
- "443"
# Python settings.
pip_package: python3-pip
pip_install_packages: ['pyopenssl']
# Nginx settings.
nginx_vhosts: []
nginx_remove_default_vhost: True
nginx_ppa_use: True
nginx_ppa_version: stable
nginx_docroot: /var/www/html
# Self-signed certificate settings.
certificate_dir: /etc/letsencrypt/live
server_hostname: https.test
vars_files:
- vars/main.yml
pre_tasks:
- name: Ensure apt cache is updated.
@@ -0,0 +1,21 @@
---
# Firewall settings.
firewall_allowed_tcp_ports:
- "22"
- "80"
- "443"
# Python settings.
pip_package: python3-pip
pip_install_packages: ['pyopenssl']
# Nginx settings.
nginx_vhosts: []
nginx_remove_default_vhost: True
nginx_ppa_use: True
nginx_ppa_version: stable
nginx_docroot: /var/www/html
# Self-signed certificate settings.
certificate_dir: /etc/letsencrypt/live
server_hostname: https.test