Skip to content

Instantly share code, notes, and snippets.

@insanity54
Created July 27, 2017 19:06
Show Gist options
  • Save insanity54/1e2c268ee9cad2ebba71e4ffe9ab9b15 to your computer and use it in GitHub Desktop.
Save insanity54/1e2c268ee9cad2ebba71e4ffe9ab9b15 to your computer and use it in GitHub Desktop.
---
- name: create array of installable package names
set_fact:
myItems:
- firefox
- googlechrome
- vcredist2008
- vcredist2012
- notepadplusplus
- adobereader
- 7zip
- libreoffice
- thunderbird
- vlc
- irfanview
- irfanviewplugins
- Ghostscript
- cutepdf
- name: Install office productivity software
win_chocolatey:
name: "{{ item }}"
state: present
with_items: "{{ myItems[0:3] }}"
- name: Install more stuff
win_chocolatey:
name: "{{ item }}"
state: present
with_items: "{{ myItems[3:6] }}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment