--
You received this message because you are subscribed to the Google Groups "Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ansible-proje...@googlegroups.com.
To post to this group, send email to ansible...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/11db0119-bd96-40e1-aaf0-63afbc5f468e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/a2293dfc-2f3b-4c16-88de-ea8f675a91ca%40googlegroups.com.
I don't have a direct answer for this - rightly or wrongly the ps1 scripts I have so far don't take any arguments - I consider them to be specific to my roles and at the moment they embed some details that it would probably be best to have as parameters. However, it looks to me like your deployLauncher.ps1 really wants to be a very general purpose deployment tool and maybe it would be better off as an ansible module. That way you could perhaps take advantage of ansible's existing syntax for specifying module arguments.
https://github.com/cchurch/ansible/tree/powershell_splatting
https://github.com/cchurch/ansible/blob/powershell_splatting/test/integration/roles/test_win_script/tasks/main.yml#L50
build_args:
key1: value1
key2: value2
script: dostuff.ps1 {{ build_args|splattify }}
--
You received this message because you are subscribed to the Google Groups "Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ansible-proje...@googlegroups.com.
To post to this group, send email to ansible...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/388179f6-448e-44e7-967f-94e400dc4514%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/ba6b122a-1fa5-48c6-9b1d-a8a2f67083ef%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/118759f9-df6f-4805-886d-00a250457019%40googlegroups.com.
installArguments:
key: value
key2: value2
and return “@{'key2'='value2';'key'='value';}” I can share if anyone is interested.
I just upgraded to ansible 1.8 and made your fix to powershell.py and winrm.py manually again. Is there any target version to get this into the main branch? I poked around in github but couldn't find way to see if you had submitted a pull request for this.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/35495c72-0da0-42f9-b854-4ab8f049ccdd%40googlegroups.com.
TEST_FLAGS="-t test_powershell_filter" make test_winrm
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/db5bd592-8018-4bf7-971d-6f8652fd9737%40googlegroups.com.
All the best, Jon