ansible-plugin
ansible-plugin copied to clipboard
Parse Job Options to Extra Variables in Ansible Playbook Inline
First of all the plugin is very nice and useful :+1:
Is there a way to parse job option values to extra variables on Ansible Inline Playbook? Haven't managed to make it work yet, or perhaps any hints how this could be achieved?
While I haven't tried this myself, I'd suggest adding ${option.xxx} values to your inline playbook.
---
- hosts: all
gather_facts: no
tasks:
- name: Check option variables
debug: msg="Option option1 is ${option.option1}"
Has this resolved your issue?
Had the same problem. ${option.option1}" works fine