From e73807c2adadabda937f95e2c9713b8ff9f62e3a Mon Sep 17 00:00:00 2001 From: Paul Belloc Date: Tue, 21 Apr 2020 16:24:39 +0200 Subject: [PATCH 1/4] take comment in account --- tasks/configure.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/tasks/configure.yml b/tasks/configure.yml index 4c1baa6..aa39ca8 100644 --- a/tasks/configure.yml +++ b/tasks/configure.yml @@ -63,6 +63,7 @@ protocol: "{{ item.protocol | default('any') }}" route: "{{ item.route | default(omit) }}" log: "{{ item.log | default(false) }}" + comment: "{{ item.comment | default(omit) }}" with_items: "{{ ufw_rules }}" notify: reload ufw tags: From d98dab98bcc2a8f3cefce4e66356de8dbe9f88d5 Mon Sep 17 00:00:00 2001 From: Paul Belloc Date: Wed, 22 Apr 2020 10:46:22 +0200 Subject: [PATCH 2/4] comment use rexample readme.md --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 09cd43c..df53166 100644 --- a/README.md +++ b/README.md @@ -50,6 +50,7 @@ None - rule: allow to_port: 22 protocol: tcp + comment: 'allow incoming connection on standard ssh port' ``` ##### Allow all traffic on eth1 @@ -62,6 +63,7 @@ None - rule: allow interface: eth1 to_port: '' + comment: 'allow all kind of traffic on interface eth1' ``` ##### Allow snmp traffic from 1.2.3.4 on eth0 From b287ef6298af8174173583ea28b71f06412f8415 Mon Sep 17 00:00:00 2001 From: Paul Belloc Date: Wed, 22 Apr 2020 14:08:08 +0200 Subject: [PATCH 3/4] change example --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index df53166..77a597a 100644 --- a/README.md +++ b/README.md @@ -63,7 +63,7 @@ None - rule: allow interface: eth1 to_port: '' - comment: 'allow all kind of traffic on interface eth1' + comment: 'allow all traffic on interface eth1' ``` ##### Allow snmp traffic from 1.2.3.4 on eth0 From 320f5be22440a3053c285ba60bafc73e5c0f123e Mon Sep 17 00:00:00 2001 From: Paul Belloc Date: Wed, 22 Apr 2020 14:41:47 +0200 Subject: [PATCH 4/4] space instead of tabs --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 77a597a..703ec0d 100644 --- a/README.md +++ b/README.md @@ -50,7 +50,7 @@ None - rule: allow to_port: 22 protocol: tcp - comment: 'allow incoming connection on standard ssh port' + comment: 'allow incoming connection on standard ssh port' ``` ##### Allow all traffic on eth1 @@ -63,7 +63,7 @@ None - rule: allow interface: eth1 to_port: '' - comment: 'allow all traffic on interface eth1' + comment: 'allow all traffic on interface eth1' ``` ##### Allow snmp traffic from 1.2.3.4 on eth0