windows ansible (2) 썸네일형 리스트형 Windows Ansible | [Playbook] 역할 및 기능 설치(win_feature) playbook state : present(설치) | absent(제거) include_sub_feature : yes | no 하위 항목 모두 설치 --- - hosts: all gather_facts: no ignore_unreachable: yes tasks: # IIS, VSS 설치 - name: Install IIS (Web-Server only) win_feature: name: - Web-Server - Windows-Server-Backup state: present include_sub_features: yes register: win_feature # 설치 후 필요한 경우 재부팅 - name: Reboot if installing Web-Server feature requires it.. Windows Ansible | [Playbook] shutdown, reboot, service winrm 설치는 여기 참조 윈도우 전원 shutdown --- - hosts: all gather_facts: no ignore_unreachable: yes tasks: - name: Run an executable and send data to the stdin for the executable win_command: powershell.exe Stop-Computer -Force 윈도우 전원 reboot --- - hosts: all gather_facts: no ignore_unreachable: yes tasks: - name: Reboot the machine with all defaults win_reboot: 윈도우 서비스 모듈 start_mode : auto | delayed | dis.. 이전 1 다음