From 44a5ca6baed687aed309a2e0fad4d56bca021ccd Mon Sep 17 00:00:00 2001 From: Emiliano Vavassori Date: Sat, 10 Nov 2018 13:32:32 +0100 Subject: [PATCH] Using vagrant automatic inventory correctly. --- Vagrantfile | 6 +++++- provision_hosts | 3 --- 2 files changed, 5 insertions(+), 4 deletions(-) delete mode 100644 provision_hosts diff --git a/Vagrantfile b/Vagrantfile index 3b7b9bb..db474f2 100644 --- a/Vagrantfile +++ b/Vagrantfile @@ -127,7 +127,11 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| # # chef.validation_client_name = "ORGNAME-validator" config.vm.provision "ansible" do |ansible| - ansible.inventory_path = "provision_hosts" + # Using default dynamic inventory ansible.playbook = "provision.yml" + ansible.groups = { + "vagrant" => [ "NethServer" ] + } + ansible.compatibility_mode = "2.0" end end diff --git a/provision_hosts b/provision_hosts deleted file mode 100644 index 3d5298e..0000000 --- a/provision_hosts +++ /dev/null @@ -1,3 +0,0 @@ -# Generated by Vagrant -[vagrant] -NethServer ansible_ssh_host=127.0.0.1 ansible_ssh_port=2222 ansible_ssh_user=vagrant