aboutsummaryrefslogtreecommitdiffstats
path: root/roles/pf/meta/main.yml
diff options
context:
space:
mode:
authorRomain Gonçalves <me@rgoncalves.se>2023-01-09 22:39:47 +0100
committerRomain Gonçalves <me@rgoncalves.se>2023-04-02 11:45:09 +0200
commit1ff0fc1803fc71d925a0f2d0cf9c27058914044a (patch)
treeaff689ecd6397f2cf6ae9a4800b5f02b514afe17 /roles/pf/meta/main.yml
parentd1924d9c361470556dd1a935137a79bc0df8b099 (diff)
downloadrules-1ff0fc1803fc71d925a0f2d0cf9c27058914044a.tar.gz
feat(roles/pf): add argument specs
Diffstat (limited to 'roles/pf/meta/main.yml')
-rw-r--r--roles/pf/meta/main.yml42
1 files changed, 42 insertions, 0 deletions
diff --git a/roles/pf/meta/main.yml b/roles/pf/meta/main.yml
new file mode 100644
index 0000000..8a6aa88
--- /dev/null
+++ b/roles/pf/meta/main.yml
@@ -0,0 +1,42 @@
+---
+
+argument_specs:
+ main:
+ short_description: pf main entrypoint.
+ options:
+
+ pf_rules:
+ type: list
+ elements: dict
+ required: true
+ options:
+ name:
+ type: str
+ required: true
+ protocol:
+ type: str
+ required: true
+ choices:
+ - tcp
+ - udp
+ description: Network protocol
+ port:
+ type: int
+ required: true
+ description: Port to be configured
+
+ pf_configuration_file:
+ type: path
+ required: true
+ description: Pf configuration file
+
+ pf_test_delay:
+ type: int
+ required: true
+ description: Pf test delay
+
+ pf_test_ports:
+ type: list
+ element: int
+ required: true
+ description: Ports to be tested
remember that computers suck.