티스토리 뷰
반응형
ping
- 모든 hosts 그룹에 ping 테스트
ansible hosts -m ping
command
- 모든 hosts 그룹에 ls -al 명령어 수행
ansible hosts -m command -a "ls -al"
파일전송 put
- Ansible 서버의 example.txt 파일을 모든 hosts에 test.txt 파일명으로 업로드
ansible hosts -m copy -a "src=~/example.txt dest=~/test.txt"
파일전공get
- 모든 hosts의 test.txt 파일을 Ansible 서버의 example 디렉토리 하위에 다운로드
ansible hosts -m fetch -a "src=~/test.txt dest=~/example"
반응형
'ansible' 카테고리의 다른 글
cisco switch config backup (0) | 2022.02.28 |
---|---|
install ansible on centos 7 (0) | 2021.10.26 |
ansible key copy (0) | 2021.08.05 |
[ansible] file 내용 변경하기 (0) | 2020.02.22 |
[Ansible] ansible /etc/sudoers line 추가하기 (0) | 2020.02.21 |
공지사항
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
TAG
- 리눅스 커맨드 로그남기기
- windows.old 강제삭제
- nutanix rac
- dl20
- 특정 문구 치환
- cmd로 윈도우 계정 관리
- ISCSI 볼륨 RAC
- vm rac
- dl20 centos7
- 윈도우 cmd 계정 관리
- centos7 ntp
- ILO
- linux command log
- nxos ansible
- cisco ansible
- chrony
- oracle linux8 kernel
- CentOS 7 GUI
- ios ansible
- ipmi
- kernel 변경
- cmd로 계정 생성
- ansible ios
- dl20 g9 centos7 설치
- shell connmad log
- ansible network
- 윈도우서버 계정 관려
- 특정 라인삭제
- cgroup
- DL20 GEN9 장비에 CentOS 7
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 |
글 보관함