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 |
Tags
- 한글가이드
- ansible
- 보안양파
- 로그인불가
- Kibana
- XCP-ng
- Proxy
- Kibana server is not ready yet
- GitLab
- docker
- PlayBook
- centos 8
- macos
- bash
- xe guest utilities
- Windows
- Elasticsearch
- miniconda
- pfsense
- G-suite
- freebsd
- ELASTIC
- endpoint security
- hardening
- x-pack
- proxycfg
- application security
- elastic stack
- ssh key 배포
Archives
- Today
- Total
선 밖에 선 자유인
Ansible playbook : 프로그램 설치 (file) 본문
Windows 와 Ubuntu 클라이언트에 Chrome 최신 버전 설치 예제
(apt나 win_package 등 기본적인 패키지 설치 기능이 상황에 맞게 구동되지 않는 경우가 많음...)
---
- name: Chrome Install
hosts: all
user: ansible
become: yes
#gather_facts: no
tasks:
- name: create directory Windows
win_file:
path: C:\Temp
state: directory
when: ansible_facts['os_family'] == "Windows"
- name: Chrome setup file copy (Windows)
win_copy:
src: /home/ansible/lab/ChromeSetup.exe
dest: C:\Temp\ChromeSetup.exe
when: ansible_facts['os_family'] == "Windows"
- name: Chrome setup file copy (Linux)
copy:
src: /home/ansible/lab/google-chrome-stable_current_amd64.deb
dest: /tmp/google-chrome-stable_current_amd64.deb
when: ansible_facts['os_family'] != "Windows"
- name: Install Chrome (Windows)
win_shell:
Start-Process -FilePath "C:\Temp\ChromeSetup.exe" -ArgumentList "/S /v/qn"
when: ansible_facts['os_family'] == "Windows"
- name: Install Chrome (Linux)
become: true
shell:
dpkg -i /tmp/google-chrome-stable_current_amd64.deb
when: ansible_facts['os_family'] != "Windows"
- name: Delete file (Windows)
win_file:
path: C:\Temp\ChromeSetup.exe
state: absent
when: ansible_facts['os_family'] == "Windows"
- name: Delete File (Linux)
file:
path: /tmp/google-chrome-stable_current_amd64.deb
state: absent
when: ansible_facts['os_family'] != "Windows"
Comments