...
Code Block |
---|
title | 작업디렉터리 구조 및 Config File위치 |
---|
|
[devops@work-vm devops-lab]$ pwd
/home/devops/devops-lab
[devops@work-vm devops-lab]$ tree
.
├── ansible.cfg
└── inventory
└── inventory
1 directory, 2 files
|
Info |
---|
|
[devops@work-vm devops-lab]$ cat ansible.cfg Code Block |
---|
title | ansible.cfg |
---|
linenumbers | true |
---|
| [defaults]
inventory = inventory
remote_user = devops
ask_pass = false
[privilege_escalation]
become=false
become_method=sudo
become_user=root
become_ask_pass=false |
|
Info |
---|
|
[devops@work-vm devops-lab]$ cat inventory/inventory Code Block |
---|
title | inventory/inventory |
---|
linenumbers | true |
---|
| [web]
web01-vm
web02-vm
web03-vm
|
|
Info |
---|
|
[devops@work-vm devops-lab]$ ansible --version
Code Block |
---|
title | config file |
---|
linenumbers | true |
---|
| ansible 2.9.1
config file = /home/devops/devops-lab/ansible.cfg
configured module search path = [u'/home/devops/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules']
ansible python module location = /usr/lib/python2.7/site-packages/ansible
executable location = /usr/bin/ansible
python version = 2.7.5 (default, Jul 13 2018, 13:06:57) [GCC 4.8.5 20150623 (Red Hat 4.8.5-28) | ]
[devops@work-vm devops-lab$
|
Info |
---|
|
[devops@work-vm devops-lab]$ cat ansible.cfg
Code Block |
---|
title | ansible.cfg |
---|
linenumbers | true |
---|
|
[defaults]
inventory = inventory
remote_user = devops
ask_pass = false
[privilege_escalation]
become=false
become_method=sudo
become_user=root
become_ask_pass=false |
Info |
---|
|
[devops@work-vm devops-lab]$ cat inventory/inventory Code Block |
---|
title | inventory/inventory |
---|
linenumbers | true |
---|
| [web]
web01-vm
web02-vm
web03-vm
|
|