ansible-plugin icon indicating copy to clipboard operation
ansible-plugin copied to clipboard

Parse Job Options to Extra Variables in Ansible Playbook Inline

Open alogoc opened this issue 6 years ago • 3 comments

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?

alogoc avatar Mar 12 '18 14:03 alogoc

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}"

mcassaniti avatar Mar 12 '18 21:03 mcassaniti

Has this resolved your issue?

mcassaniti avatar Aug 16 '18 07:08 mcassaniti

Had the same problem. ${option.option1}" works fine

angrybb avatar Nov 08 '18 08:11 angrybb