summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYuya Kusakabe <yuya.kusakabe@gmail.com>2018-06-26 06:34:53 +0900
committerGitHub <noreply@github.com>2018-06-26 06:34:53 +0900
commitebf269e8926d3dbd2a543aabe598ef4cfa68a5ff (patch)
treeef171f6bdfc6f1b1a6abcd64b048b4ec2dd87b72
parent7e85935ac874876ed515ec1179ce6215d3a4bf5c (diff)
parent1bb43a23c0d7f38a28081bb75fa1b41df68d25ff (diff)
downloadvyos-vm-images-ebf269e8926d3dbd2a543aabe598ef4cfa68a5ff.tar.gz
vyos-vm-images-ebf269e8926d3dbd2a543aabe598ef4cfa68a5ff.zip
Merge pull request #1 from wate/patch-1
Make it possible to omit specifying the inventory file when executing the ansible-playbook command
-rw-r--r--README.md10
-rw-r--r--ansible.cfg2
2 files changed, 7 insertions, 5 deletions
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