Setup default Ansible variables for Vagrant

This commit is contained in:
Kris Lamoureux 2020-06-14 22:33:39 -04:00
parent f2b599e87c
commit 8765808d77
Signed by: kris
GPG Key ID: 3EDA9C3441EDA925
3 changed files with 20 additions and 4 deletions

6
Vagrantfile vendored
View File

@ -21,11 +21,9 @@ Vagrant.configure("2") do |config|
# Provision with Ansible
config.vm.provision "ansible" do |ansible|
ENV['ANSIBLE_ROLES_PATH'] = File.dirname(__FILE__) + "/roles"
ansible.compatibility_mode = "2.0"
ansible.playbook = ENV["PLAYBOOK"] + ".yml"
ansible.inventory_path = "environments/development/vagrant"
ansible.limit = ENV["PLAYBOOK"]
ansible.playbook = "dev/" + ENV["PLAYBOOK"] + ".yml"
end
end

9
dev/host_vars/moxie.yml Normal file
View File

@ -0,0 +1,9 @@
# docker
docker_user: vagrant
# bitwarden
# Get Installation ID & Key at https://bitwarden.com/host/
bitwarden_domain: vault.test.krislamo.org
bitwarden_dbpass: password
bitwarden_install_id: 4ea840a3-532e-4cb6-a472-abd900728b23
bitwarden_install_key: 1yB3Z2gRI0KnnH90C6p

9
dev/moxie.yml Normal file
View File

@ -0,0 +1,9 @@
- name: Install Moxie Server
hosts: all
become: true
vars_files:
- host_vars/moxie.yml
roles:
- ansible
- docker
- bitwarden