-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathwin_chocolatey.yml
42 lines (42 loc) · 1.46 KB
/
win_chocolatey.yml
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
32
33
34
35
36
37
38
39
40
41
42
#### CHOCOLATEY PAKET YÖNETİCİSİ İLE PAKET YÜKLEMEK İÇİN ÖNCE HEDEF SUNUCUDA BU PAKETİ POWERSHELL'LE BU PAKETİ YÜKLEMEMİZ GEREKİR.
#### BU PAKETİ YÜKLEMEK İÇİN GEREKLİ POWERSHELL SCRRİPTİ :
#### iwr https://chocolatey.org/install.ps1 -UseBasicParsing | iex
#### EĞER DOĞRUDAN BU KOD ÇALIŞMAZSA ÖNCELİK OLARAK ŞU PORTU ENABLE ETMEMİZ GEREKİR. BUNUN İÇİNSE GEREKLİ POWERSHELL SCRİPTİ :
#### $env:chocolateyUseWindowsCompression = 'true'
---
- name: test chocolatey with ansible
hosts: all
tasks:
- name: Install Firefox
win_chocolatey:
name: firefox
state: present
proxy_url: http://10.13.50.100:8080
proxy_username: aytemury
proxy_password: ----
- name: Install notepadplusplus 32 bit version
win_chocolatey:
name: notepadplusplus
architecture: x86
- name: Install specific version
win_chocolatey:
name: notepadplusplus
version: '6.6'
- name: Uninstall git
win_chocolatey:
name: git
state: absent
- name: Install multiple packages sequentially # birden fazla paket yükleme
win_chocolatey:
name: '{{ item }}'
state: present
loop:
- procexp
- putty
- windirstat
- name: Install a package that requires 'become' # admin izinli ve kontrollü yükleme
win_chocolatey:
name: officepro2013
become: yes
become_user: Administrator
become_method: runas