playbook을 사용하여 파일 복사
·
Ansible
playbook 을 사용하여 파일 복사 playbook 파일 내용 (filecopy.yml) 복제 대상 정보는 inventory 파일에 기록 $ cat inventory [Server] 10.10.10.101 $ cat filecopy.yml - name: file copy hosts: Server vars: ansible_ssh_user: ansible tasks: - name: file copy ansible.builtin.copy: src: /home/ansible/test.txt dest: /home/ansible/test.txt owner: ansible group: ansible 파일 복제 $ ansible-playbook -i inventory filecopy.yml $ ansible-pla..