Коллеги подскажите, пожалуйста, есть переменные в таком виде
windows_firewall_rules:
- name: Test
localport:
- 5555
- 5556
action: allow
direction: in
protocol: tcp
profiles: public
state: present
enabled: no
Есть цикл в таком виде
- name: config | firewall rules
win_firewall_rule:
name: '{{
item.name }}'
localport: '{{ item.localport }}'
action: '{{ item.action }}'
direction: '{{ item.direction }}'
protocol: '{{ item.protocol }}'
profiles: '{{ windows_firewall_profiles }}'
state: '{{ item.state | default("present") }}'
enabled: '{{ item.enabled | default("yes") }}'
loop: '{{ windows_firewall_rules | flatten(1) }}'
Ансиблу не нравится формат написания
localport:
- 5555
- 5556
"msg": "The data is invalid. (Exception from HRESULT: 0x8007000D)"}