diff --git a/tasks/section_3/cis_3.5.1.x.yml b/tasks/section_3/cis_3.5.1.x.yml index ba65de4b..028941fd 100644 --- a/tasks/section_3/cis_3.5.1.x.yml +++ b/tasks/section_3/cis_3.5.1.x.yml @@ -164,10 +164,11 @@ rule: allow direction: in from_ip: '{{ item.from }}' - to_port: '{{ item.ports }}' + to_port: '{{ item.port }}' proto: '{{ item.proto }}' - loop: - - "{{ ubtu20cis_ufw_allow_in }}" + loop: "{{ ubtu20cis_ufw_allow_in }}" + loop_control: + label: "{{ item.port }}" notify: reload ufw when: ufw_add_incoming tags: