- inventory - 과 연관된 글 목록
Post
Ansible 정리 - Inventory
Ansible 접속 방법 SSH or WinRM (powershell remoting)을 통해서 연결 agent가 필요 없다
inventory file 기본 위치 : /etc/ansible/hosts
서버 주소가 listing 되어있는 파일 (ini 형식비스무리)
server1.company.com server2.company.com [mail] server3.company.com server4.company.com [web] server5.company.com server6.company.com inventory with alias web ansible_host=server1.company.com ansible_connection=ssh db ansible_host=192.168.129.111 ansible_connection=winrm 그 외 inventory parameters ansible_host : 주소 ansible_connection : conneciton type(ssh/winrm/localhos) ansible_port : 포트 번호 (22/5986) ansible_user : root/administrator ansible_ssh_pass : ssh password ansible_password : winrm password # Web Servers web1 ansible_host=server1.