Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 | 31 |
Tags
- centos 8
- ansible
- freebsd
- XCP-ng
- 보안양파
- elastic stack
- 로그인불가
- GitLab
- macos
- x-pack
- Proxy
- Windows
- xe guest utilities
- ssh key 배포
- PlayBook
- Kibana
- docker
- G-suite
- pfsense
- bash
- miniconda
- ELASTIC
- proxycfg
- Kibana server is not ready yet
- application security
- 한글가이드
- Elasticsearch
- hardening
- endpoint security
Archives
- Today
- Total
선 밖에 선 자유인
Ansible Playbook : Windows hotfix (msu 파일) 본문
---
- name: Windows MSU Patch
hosts: windows
gather_facts: no
user: vagrant
tasks:
- name: create directory
win_file:
path: C:\Temp
state: directory
- name: file copy
win_copy:
src: /home/ansible/lab/windows10.0-kbxxxxx-x86_xxxxxxxxxxxxxxx.msu
dest: C:\Temp\windows_patch.msu
- name: Windows Hotfix
win_hotfix:
source: C:\Temp\windows_patch.msu
state: present
register: hotfix_install
- win_reboot:
when: hotfix_install.reboot_required
- name: file delete
win_file:
path: C:\Temp\windows_patch.msu
state: absent
Comments