On Sat, 10 Nov 2018 at 08:26, BIJAY PARIDA <bijay.cr...@gmail.com> wrote:
>
>
> I have defined the variable like below:-
>
>
> input_host_ports:
>
> - 4000:fluent:syslog
>
> - 4500:json:log
>
> - 4800:plain:debuglog

Start by defining your variable as a list of dicts, so you can easily
iterate over them:

input_host_ports:
  - port: 4000
    codec: fluent
    type: syslog
  - port: 5500
    codec: json
    type: debuglog
    charset: ISO-8859-1
  - port: 4800
    codec: plain
    type: debuglog



Dick

-- 
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-project+unsubscr...@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/CAL8fbwP0DLnFCZJ68Fi3P5z9aVd-aF8hcrNteV_p3jDeTo8JYA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to