copy

IaC/Ansible_앤서블

[Ansible] fetch, copy 모듈(파일 복사)

fetch, Copy 모듈 사용ansible의 Fetch, Copy 모듈은 linux의 scp 명령어 동작방식과 유사하다.기본적인 모듈 사용에 관한 설명은 ansible 가이드 페이지에서 확인할 수 있다.  ansible.builtin.fetch module – Fetch files from remote nodes — Ansible DocumentationNote This module is part of ansible-core and included in all Ansible installations. In most cases, you can use the short module name fetch even without specifying the collections: keyword. However, ..

IaC/Ansible_앤서블

[Ansible] Sysnchronize 모듈(Remote to Remote 파일전송)

Synchronize 모듈ansible의 Synchrinize 모듈은 linux의 rysnc 명령어를 사용할 수 있도록 만들어 놓은 모듈이다.  Remote to Remote로 데이터 전송ansible에서 파일을 옮기는 방법은 copy, fetch 등의 방법도 있지만,synchronize(rsync)를 사용하여 두 host 간에 데이터를 전송하는 방법에 대해 설명하겠다. 단일 데이터(혹은 2,3개 등 적은 데이터)- 주로 copy, fetch 모듈을 사용한다.대용량의 파일(혹은 디렉터리)- synchronie 모듈을 사용한다.  1. Sysnchrinize default 모드 (push) sysnchrionize default 동작 Sysnchronize는 default로 push mode로 동작한다.S..

cwpack0730
'copy' 태그의 글 목록