Skip to content

Commit

Permalink
Replace the hostfile to inventory for Ansible 2.4.0+ #36
Browse files Browse the repository at this point in the history
  • Loading branch information
chusiang committed Oct 21, 2017
1 parent 2568835 commit 101aabe
Show file tree
Hide file tree
Showing 13 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion 04.how-to-practive-the-ansible-with-vagrant.md
Expand Up @@ -95,7 +95,7 @@
$ vi ansible.cfg
[defaults]
hostfile = hosts
inventory = hosts
remote_user = vagrant
private_key_file = .vagrant/machines/default/virtualbox/private_key
host_key_checking = False
Expand Down
2 changes: 1 addition & 1 deletion 05.how-to-practive-the-ansible-with-docker.md
Expand Up @@ -122,7 +122,7 @@ Docker 的好凍仁在此就不多談,大家若對 Docker 還不熟悉,可
$ vi ansible.cfg
[defaults]
hostfile = hosts
inventory = hosts
remote_user = docker
host_key_checking = False
```
Expand Down
2 changes: 1 addition & 1 deletion 08.how-to-practive-the-ansible-with-jupyter2.md
Expand Up @@ -80,7 +80,7 @@
```
[defaults]
hostfile = inventory
inventory = inventory
remote_user = docker
private_key_file = ~/.ssh/id_rsa
host_key_checking = False
Expand Down
2 changes: 1 addition & 1 deletion 15.how-to-use-handlers-in-playbooks.md
Expand Up @@ -29,7 +29,7 @@ Handler 本身是一種非同步的 callback function [^1];在這裡則是指
$ vi ansible.cfg
[defaults]
hostfile = inventory
inventory = inventory
remote_user = docker
private_key_file = ~/.ssh/id_rsa
host_key_checking = False
Expand Down
2 changes: 1 addition & 1 deletion lab/ch03/ansible.cfg
@@ -1,3 +1,3 @@
[defaults]

hostfile = hosts
inventory = hosts
2 changes: 1 addition & 1 deletion lab/ch04/ansible.cfg
@@ -1,6 +1,6 @@
[defaults]

hostfile = hosts
inventory = hosts
remote_user = vagrant
private_key_file = .vagrant/machines/default/virtualbox/private_key
host_key_checking = False
2 changes: 1 addition & 1 deletion lab/ch05/ansible.cfg
@@ -1,5 +1,5 @@
[defaults]

hostfile = hosts
inventory = hosts
remote_user = docker
host_key_checking = False
2 changes: 1 addition & 1 deletion lab/ch06/ansible.cfg
@@ -1,5 +1,5 @@
[defaults]

hostfile = hosts
inventory = hosts
remote_user = docker
host_key_checking = False
2 changes: 1 addition & 1 deletion lab/ch08/ansible.cfg
@@ -1,6 +1,6 @@
[defaults]

hostfile = inventory
inventory = inventory
remote_user = docker
private_key_file = ~/.ssh/id_rsa
host_key_checking = False
Expand Down
2 changes: 1 addition & 1 deletion lab/ch09/ansible.cfg
@@ -1,6 +1,6 @@
[defaults]

hostfile = inventory
inventory = inventory
remote_user = docker
private_key_file = ~/.ssh/id_rsa
host_key_checking = False
Expand Down
2 changes: 1 addition & 1 deletion lab/ch13/ansible.cfg
@@ -1,6 +1,6 @@
[defaults]

hostfile = inventory
inventory = inventory
remote_user = docker
private_key_file = ~/.ssh/id_rsa
host_key_checking = False
Expand Down
2 changes: 1 addition & 1 deletion lab/ch15/ansible.cfg
@@ -1,6 +1,6 @@
[defaults]

hostfile = inventory
inventory = inventory
remote_user = docker
private_key_file = ~/.ssh/id_rsa
host_key_checking = False
Expand Down
2 changes: 1 addition & 1 deletion lab/ch24/testlink/ansible.cfg
@@ -1,6 +1,6 @@
[defaults]

hostfile = hosts
inventory = hosts
remote_user = vagrant
private_key_file = .vagrant/machines/default/virtualbox/private_key
host_key_checking = False

0 comments on commit 101aabe

Please sign in to comment.