mirror of
https://github.com/geerlingguy/ansible-for-devops.git
synced 2024-05-19 06:50:03 +00:00
Issue #83: Move vars for https-self-signed example into separate file.
This commit is contained in:
@@ -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.
|
||||
|
||||
|
||||
@@ -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
|
||||
Reference in New Issue
Block a user