~craftyguy/ansible-nftables

701e75ca35eb7d42e11def353d3a8023e74a95cd — BhEaN 2 years ago 1f117b0
test: fix linter tests
1 files changed, 9 insertions(+), 9 deletions(-)

M tasks/01-validate.yml
M tasks/01-validate.yml => tasks/01-validate.yml +9 -9
@@ 19,18 19,18 @@
  delegate_to: localhost
  assert:
    that:
      - "table.family == 'ip' or
        table.family == 'arp' or
        table.family == 'ip6' or
        table.family == 'bridge' or
        table.family == 'inet' or
        table.family == 'netdev'"
    msg: "The table family must be 'ip', 'ip6', 'inet', 'arp', 'bridge' or 'netdev' (not '{{ table.family }}')"
      - "nftables_ruleset.family == 'ip' or
        nftables_ruleset.family == 'arp' or
        nftables_ruleset.family == 'ip6' or
        nftables_ruleset.family == 'bridge' or
        nftables_ruleset.family == 'inet' or
        nftables_ruleset.family == 'netdev'"
    msg: "The table family must be 'ip', 'ip6', 'inet', 'arp', 'bridge' or 'netdev' (not '{{ nftables_ruleset.family }}')"
    quiet: yes
  loop: "{{ nftables_ruleset }}"
  loop_control:
    label: "{{ table.family }}"
    loop_var: table
    label: "{{ nftables_ruleset.family }}"
    loop_var: nftables_ruleset
  when:
    - nftables_ruleset is defined
    - nftables_ruleset | length > 0