forked from crombeen/ansible
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsoftware.yml
More file actions
32 lines (28 loc) · 729 Bytes
/
software.yml
File metadata and controls
32 lines (28 loc) · 729 Bytes
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
- hosts: computers
gather_facts: no
tasks:
- name: Test system connection
wait_for_connection:
timeout: 10
- name: Upgrade existing software
win_chocolatey:
name: all
state: latest
tags: software
# - name: Install/remove java
# win_chocolatey:
# name: '{{ item }}'
# state: '{{ "present" if inventory_hostname in groups["administratie"] else "absent" }}'
# with_items:
# - javaruntime-preventasktoolbar
# - jre8
# - name: Install Windows updates
# win_updates:
# state: installed
- hosts: computer23:computer26:computer41:computer43:computer48
tasks:
- name: Install dropbox
win_chocolatey:
name: dropbox
state: latest
tags: dropbox