선 밖에 선 자유인

Windows Package 설치 playbook 본문

IT/System & Network

Windows Package 설치 playbook

Hotman 2021. 1. 1. 20:46

--- 
- name: Install msi package 
  hosts: windows 
  user: vagrant 
  become: yes 

  tasks: 
  - name: Download msi installer 
     win_get_url: 
       url: 'http://<URL>' 
       dest: C:\Users\user\Downloads\filename 

  - name: file copy 
     win_copy: 
       source: C:\Users\user1\Downloads\sourcefile 
       dest: C:\Users\user2\Downloads\destfile 

  - name: Install msi 
     win_package: 
       path: C:\Users\user2\Downloads\file 
       state: present

Comments