diff --git a/Vagrantfile b/Vagrantfile index b146b3c..458ecad 100644 --- a/Vagrantfile +++ b/Vagrantfile @@ -16,7 +16,7 @@ Vagrant.configure("2") do |config| config.vm.provision "ansible" do |ansible| ansible.compatibility_mode = "2.0" - ansible.playbook = "ansible/provision.yml" + ansible.playbook = "ansible/provisioning/main.yml" ansible.inventory_path = "ansible/hosts.ini" ansible.become = true end diff --git a/ansible/provision.yml b/ansible/provisioning/main.yml similarity index 81% rename from ansible/provision.yml rename to ansible/provisioning/main.yml index a503a50..e81baf6 100644 --- a/ansible/provision.yml +++ b/ansible/provisioning/main.yml @@ -1,3 +1,4 @@ +--- - hosts: dransible become: true @@ -7,3 +8,6 @@ - geerlingguy.php - geerlingguy.php-mysql - geerlingguy.composer + + vars_files: + - vars/main.yml diff --git a/ansible/provisioning/vars/main.yml b/ansible/provisioning/vars/main.yml new file mode 100644 index 0000000..1226440 --- /dev/null +++ b/ansible/provisioning/vars/main.yml @@ -0,0 +1,4 @@ +--- +apache_vhosts: + - servername: dransible + documentroot: "/var/www/app/web"