| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 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 |
- vscode
- cilium
- KEDA
- Timeout
- 묘공단
- upgrade
- AKS
- 업그레이드
- calico
- ansible
- 쿠버네티스
- curl
- Object Storage
- EKS
- go
- aws
- ubuntu
- HPA
- kubernetes
- AutoScaling
- windows
- Karpenter
- directpv
- WSL
- 컨테이너
- gateway api
- VPA
- minIO
- ipam
- Azure
- Today
- Total
목록IaC (2)
a story
지난 번에 이어 몇가지 모듈을 더 살펴 보겠습니다. (6) 명령 수행 특정 명령을 수행하는 시나리오 입니다. [root@labco7ans ansible]# cat 07.command.yml --- - hosts: win gather_facts: no tasks: - name: run an executable using win_command win_command: whoami.exe - name: run a cmd command win_command: cmd.exe /c mkdir C:\test [root@labco7ans ansible]# ansible-playbook -i hosts 07.command.yml PLAY [win] *****************************************..
ansible 에서 Windows 서버를 관리하기 위해 활용할 수 있는 몇가지 모듈을 살펴보겠습니다. (1) 정보 가져오기 setup 모듈을 확인을 해보면 ansible_facts에 다양한 정보를 가져올 수 있습니다. [root@labco7ans ansible]# ansible -i hosts win -m setup 172.16.3.106 | SUCCESS => { "ansible_facts": { "ansible_architecture": "64-bit", "ansible_bios_date": "11/26/2012", "ansible_bios_version": "Hyper-V UEFI Release v1.0", } 이를 아래와 같이 활용할 수 있습니다. [root@labco7ans ansible]# c..