Re: [ansible-project] How can I pass extra variables to a shell script in my playbooks

2019-02-11 Thread Jon Spriggs
Hi Conor, sounds like you're probably doing this (untested pseudocode): - shell: "/path/to/script {{ var }}" vars: var: some_key: some_data Instead, you need to do something like this (untested pseudocode): - shell: "/path/to/script {% for item in var|dict2items %}{{ item.key }}={{ i

[ansible-project] How can I pass extra variables to a shell script in my playbooks

2019-02-11 Thread Conor Proud
Hi, This looks like the right place for posting questions- but please point me in the right direction if not. I'm using the "extra variables" box on the awx web front-end to provide key-value pairs to a shell script in my playbook. The problem I'm having is how I can use those variables in my sh