The option values will be available to scripts in these forms:
Bash: $RD_OPTION_VLANID
Commandline Arguments: ${option.vlanID}
Script Content: @option.vlanID@
---
- name: Define VLAN
hosts: all
vars:
vlanid: lookup('env','RD_OPTION_VLANID')
tasks:
- debug: msg="{{ lookup('env','RD_OPTION_VLANID') }}"
- name: configure vlan
connection: local
ios_config:
lines: vlan {{ vars.vlanid }}
--
You received this message because you are subscribed to the Google Groups "rundeck-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rundeck-discuss+unsubscribe@googlegroups.com.
To post to this group, send email to rundeck-discuss@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rundeck-discuss/5c322cf3-905a-4be8-abbe-e06ec9c54925%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Alex Honor
[Rundeck | a...@rundeck.com ]
---
- name: Define VLAN
hosts: all
vars:
vlanid: "{{ vlanid }}"
tasks:
- name: configure vlan
connection: local
ios_config:
lines: vlan {{ vars.vlanid }}
vlanid: ${option.vlanID}