From 69f094523a95e2123c015c811c6b11d1310831ce Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Thu, 18 Jul 2019 08:13:17 +0100 Subject: [PATCH] Replace hosts.ini with hosts.yml --- Vagrantfile | 2 +- ansible/hosts.ini | 1 - ansible/hosts.yml | 5 +++++ 3 files changed, 6 insertions(+), 2 deletions(-) delete mode 100644 ansible/hosts.ini create mode 100644 ansible/hosts.yml diff --git a/Vagrantfile b/Vagrantfile index 67c4778..26dfc68 100644 --- a/Vagrantfile +++ b/Vagrantfile @@ -19,7 +19,7 @@ Vagrant.configure("2") do |config| config.vm.provision "ansible" do |ansible| ansible.compatibility_mode = "2.0" ansible.playbook = "ansible/provision.yml" - ansible.inventory_path = "ansible/hosts.ini" + ansible.inventory_path = "ansible/hosts.yml" ansible.become = true ansible.ask_vault_pass = true end diff --git a/ansible/hosts.ini b/ansible/hosts.ini deleted file mode 100644 index 121ea91..0000000 --- a/ansible/hosts.ini +++ /dev/null @@ -1 +0,0 @@ -dransible ansible_ssh_host=192.168.33.10 ansible_ssh_port=22 diff --git a/ansible/hosts.yml b/ansible/hosts.yml new file mode 100644 index 0000000..24d88dc --- /dev/null +++ b/ansible/hosts.yml @@ -0,0 +1,5 @@ +all: + hosts: + dransible: + ansible_ssh_host: 192.168.33.10 + ansible_ssh_port: 22