doc: update ansible.md
This commit is contained in:
parent
24ea8f6a6a
commit
ff0b08acdb
@ -47,7 +47,7 @@ ansible --version | grep "config file"
|
|||||||
|
|
||||||
`/etc/ansible/hosts`
|
`/etc/ansible/hosts`
|
||||||
|
|
||||||
```INI
|
```ini
|
||||||
mail.example.com
|
mail.example.com
|
||||||
|
|
||||||
[webservers]
|
[webservers]
|
||||||
@ -57,7 +57,7 @@ bar.example.com
|
|||||||
|
|
||||||
### Inventory 主机组使用多个IP和域名
|
### Inventory 主机组使用多个IP和域名
|
||||||
|
|
||||||
```
|
```ini
|
||||||
[web]
|
[web]
|
||||||
172.18.12.5[1:4]
|
172.18.12.5[1:4]
|
||||||
[webservers]
|
[webservers]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user