Compare commits
1 Commits
b81372c07a
...
staticweb
| Author | SHA1 | Date | |
|---|---|---|---|
| f4f5b10395 |
8
Vagrantfile
vendored
8
Vagrantfile
vendored
@@ -16,9 +16,13 @@ SSH_FORWARD = settings['SSH_FORWARD'] || false
|
||||
|
||||
# Default to shell environment variable: PLAYBOOK (priority #1)
|
||||
PLAYBOOK=ENV["PLAYBOOK"]
|
||||
if !PLAYBOOK || PLAYBOOK.empty?
|
||||
if !PLAYBOOK
|
||||
# PLAYBOOK setting in .vagrant.yml (priority #2)
|
||||
PLAYBOOK = settings['PLAYBOOK'] || 'default'
|
||||
PLAYBOOK = settings['PLAYBOOK'] || false
|
||||
if !PLAYBOOK || PLAYBOOK.empty?
|
||||
puts "[VAGRANTFILE ERROR]: Set PLAYBOOK setting in .vagrant.yml"
|
||||
abort
|
||||
end
|
||||
end
|
||||
|
||||
Vagrant.configure("2") do |config|
|
||||
|
||||
@@ -1,4 +0,0 @@
|
||||
- name: Install 'default' aka nothing
|
||||
hosts: all
|
||||
become: true
|
||||
tasks: []
|
||||
@@ -14,7 +14,7 @@ traefik_auth: admin:$apr1$T1l.BCFz$Jyg8msXYEAUi3LLH39I9d1 # admin:admin
|
||||
#traefik_acme_email: realemail@example.com # Let's Encrypt settings
|
||||
#traefik_production: true
|
||||
|
||||
# nginx
|
||||
# staticweb
|
||||
nginx_domain: nginx.vm.krislamo.org
|
||||
nginx_name: staticsite
|
||||
nginx_repo_url: https://git.krislamo.org/kris/example-website/
|
||||
@@ -1,10 +1,10 @@
|
||||
- name: Install nginx server (docker)
|
||||
- name: Install a static web container
|
||||
hosts: all
|
||||
become: true
|
||||
vars_files:
|
||||
- host_vars/nginx.yml
|
||||
- host_vars/staticweb.yml
|
||||
roles:
|
||||
- base
|
||||
- docker
|
||||
- traefik
|
||||
- nginx
|
||||
- staticweb
|
||||
Reference in New Issue
Block a user