hosts (2) 썸네일형 리스트형 7. ansible inventory 설정 과 playbook 실행 Inventory 설정 linux 1개의 호스트 (한줄 쓰기) # linux ssh testansible_host={linux ip} ansible_user={linux user} ansible_port={ssh port} ansible_connection=ssh ansible_ssh_pass="{password}" windows 그룹지정하기 # plo 그룹 [plo] plo1 ansible_host= ansible_password="" plo2 ansible_host= ansible_password="" # plo 그룹 변수 [plo:vars] ansible_user=administrator ansible_connection=winrm ansible_winrm_server_cert_validation=.. 2.4 ansible | [roles][CentOS 시스템 초기 설정] role 수행(vault 포함) role 수행 [root@ANSIBLE roles]# pwd /etc/ansible/roles ## host 정의 [root@ANSIBLE roles]# cat ../hosts ... [test] test02 ansible_host={host ip} ansible_user=root ansible_port=22 ansible_connection=ssh ansible_ssh_pass="{ssh password}" test03 ansible_host={host ip} ansible_user=root ansible_port=22 ansible_connection=ssh ansible_ssh_pass="{ssh password}" ## role 수행 [root@ANSIBLE roles]# cat 00.init.i.. 이전 1 다음