Setup default Ansible variables for Vagrant
This commit is contained in:
parent
f2b599e87c
commit
8765808d77
6
Vagrantfile
vendored
6
Vagrantfile
vendored
@ -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
9
dev/host_vars/moxie.yml
Normal 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
9
dev/moxie.yml
Normal file
@ -0,0 +1,9 @@
|
||||
- name: Install Moxie Server
|
||||
hosts: all
|
||||
become: true
|
||||
vars_files:
|
||||
- host_vars/moxie.yml
|
||||
roles:
|
||||
- ansible
|
||||
- docker
|
||||
- bitwarden
|
Loading…
Reference in New Issue
Block a user