Skip to content

Instantly share code, notes, and snippets.

@perzizzle
Last active August 29, 2015 14:08
Show Gist options
  • Select an option

  • Save perzizzle/b3e13af9e94d9fbb7970 to your computer and use it in GitHub Desktop.

Select an option

Save perzizzle/b3e13af9e94d9fbb7970 to your computer and use it in GitHub Desktop.
Splattering test
param(
[Parameter(Mandatory=$false,Position=1)] [hashtable] $installArguments = @{}
)
Write-Host "Install Arguments: $installArguments"
---
- hosts: windows
gather_facts: false
vars:
installArguments: "@{key='value'}"
tasks:
- debug: msg='deploy.ps1 -installArguments "{{ installArguments }}"'
- name: Deploy
script: deploy.ps1 -installArguments "{{ installArguments }}"
register: deploy
- debug: var=deploy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment