lookup 플러그인은 컨트롤노드의 정보를 불러온다.
history 로 번호 확인 후 !번호 입력시 그 명령어 다시 실행
ansible ansi-node1 -m setup > test
less test
애드훅 명령어를 사용시 ansible_붙음
ansible-playbook setup.yml > test1
-> ansible 문구가 빠진채로 출력
특수변수는 미리 예약되어 있으며 사용자가 직접 설정할 수 없음
Ansible은 특수 변수의 값을 현재 상태를 반영하도록 재정의
hostvars : 호스트의 이름을 값으로 갖고 있는 변수
{{ hostvars['ansi-node1']['ansible_facts']['distribution'] }}
groups : 그룹의 호스트 이름을 갖고 있는 변수
{{ groupt['AA'] }}
inventory_hostname :