반응형 Ansible playbook test1 Ansible playbook test ansible 가이드를 참조하여 playbook 테스트를 해보자. - name: My first play hosts: virtualmachines tasks: - name: Ping my hosts ansible.builtin.ping: - name: Print message ansible.builtin.debug: msg: Hello world 당연히 그대로는 안치고 내 환경에 맞춰 바꾸고 실행 ansible-playbook -i inventory.yaml playbook.yaml 잘된다. 대략 아래처럼 비슷하게 잘 나옴. PLAY [My first play] ********************************************************************** TASK [Gat.. 2023. 2. 1. 이전 1 다음 반응형