Skip to content

Commit

Permalink
Shorter task names.
Browse files Browse the repository at this point in the history
  • Loading branch information
robert-de-bock committed Sep 20, 2023
1 parent 9acd94e commit 78fd837
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions tasks/assert.yml
Original file line number Diff line number Diff line change
@@ -1,30 +1,30 @@
---

- name: assert | Test if firewall_default_protocol is set correctly
- name: assert | Test firewall_default_protocol
ansible.builtin.assert:
that:
- firewall_default_protocol is defined
- firewall_default_protocol is string
- firewall_default_protocol in [ "tcp", "udp" ]
quiet: yes

- name: assert | Test if firewall_default_rule is set correctly
- name: assert | Test firewall_default_rule
ansible.builtin.assert:
that:
- firewall_default_rule is defined
- firewall_default_rule is string
- firewall_default_rule in [ "allow", "deny" ]
quiet: yes

- name: assert | Test if firewall_services is set correctly
- name: assert | Test firewall_services
ansible.builtin.assert:
that:
- firewall_services is iterable
quiet: yes
when:
- firewall_services is defined

- name: assert | Test if non-numeric item in firewall_services is set correctly
- name: assert | Test non-numeric item in firewall_services
ansible.builtin.assert:
that:
- item.name is defined
Expand All @@ -38,7 +38,7 @@
- firewall_services is defined
- item.name is not number

- name: assert | Test if numeric item in firewall_services is set correctly
- name: assert | Test numeric item in firewall_services
ansible.builtin.assert:
that:
- item.name is defined
Expand All @@ -53,7 +53,7 @@
- firewall_services is defined
- item.name is number

- name: assert | Test if item with state in firewall_services is set correctly
- name: assert | Test item with state in firewall_services
ansible.builtin.assert:
that:
- item.state is string
Expand Down

0 comments on commit 78fd837

Please sign in to comment.