I would recommend you to come up with a data structure like -

vars:
   my_data:
      - name: "{{netplan_ssid}}"
         password: "ChinaNet-2403"
         test: "ChinaNet-2403"

On Sat, Jul 10, 2021 at 11:26 AM 黄政 <hzgood...@gmail.com> wrote:

> ansible --version
>
> ansible [core 2.11.1]
> -----
> - name: Include the mrlesmithjr.netplan role
>    include_role:
>    vars:
>       "{{netplan_ssid}}":
>          password: "{{netplan_password}}"
>          test: "{{netplan_ssid}}"
>
>
>
> ----
> result
> -----
> access-points:
> '{{netplan_ssid}}':
>    password: '17682318150'
>    test: ChinaNet-2403
>
> --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/ansible-project/a65d3394-eda0-49f9-b820-a83ca6f716d4n%40googlegroups.com
> <https://groups.google.com/d/msgid/ansible-project/a65d3394-eda0-49f9-b820-a83ca6f716d4n%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>


-- 
Thanks,
Abhijeet Kasurde

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/CAFwWkHqPz56GQOve8HvZazU%3DYoKHaBfTPw4RTw8rydn-Aa_%2BCw%40mail.gmail.com.

Reply via email to