From 1bb43a23c0d7f38a28081bb75fa1b41df68d25ff Mon Sep 17 00:00:00 2001 From: wate Date: Fri, 22 Jun 2018 22:35:48 +0900 Subject: Add ansible.cfg to specify the default inventory path --- README.md | 10 +++++----- ansible.cfg | 2 ++ 2 files changed, 7 insertions(+), 5 deletions(-) create mode 100644 ansible.cfg diff --git a/README.md b/README.md index af08f34..39560e7 100644 --- a/README.md +++ b/README.md @@ -7,24 +7,24 @@ - QEMU ``` - ansible-playbook -i hosts qemu.yml + ansible-playbook qemu.yml ``` - VMware ``` - ansible-playbook -i hosts vmware.yml - ansible-playbook -i hosts vmware.yml -e vyos_vmware_private_key_path=path_to_private_key + ansible-playbook vmware.yml + ansible-playbook vmware.yml -e vyos_vmware_private_key_path=path_to_private_key ``` - Microsoft Hyper-V ``` - ansible-playbook -i hosts hyperv.yml + ansible-playbook hyperv.yml ``` - Vagrant libvirt ``` - ansible-playbook -i hosts vagrant-libvirt.yml + ansible-playbook vagrant-libvirt.yml ``` diff --git a/ansible.cfg b/ansible.cfg new file mode 100644 index 0000000..ed865bf --- /dev/null +++ b/ansible.cfg @@ -0,0 +1,2 @@ +[defaults] +inventory = hosts -- cgit v1.2.3