From c9ce2c890614af5b90e7d055ec71ce55f9a551b2 Mon Sep 17 00:00:00 2001 From: L3D Date: Thu, 29 Dec 2022 04:02:02 +0100 Subject: [PATCH] initialize and allow SSH --- LICENSE | 2 +- tasks/firewall.yml | 12 ++++++++++++ tasks/main.yml | 3 +++ 3 files changed, 16 insertions(+), 1 deletion(-) create mode 100644 tasks/firewall.yml create mode 100644 tasks/main.yml diff --git a/LICENSE b/LICENSE index 2071b23..22cd01f 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ MIT License -Copyright (c) +Copyright (c) 2022 L3D Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: diff --git a/tasks/firewall.yml b/tasks/firewall.yml new file mode 100644 index 0000000..d5b1b0a --- /dev/null +++ b/tasks/firewall.yml @@ -0,0 +1,12 @@ +--- +- name: Firewall rule to allow SSH on TCP port 22 + community.windows.win_firewall_rule: + name: SSH + localport: 22 + action: allow + direction: in + protocol: tcp + state: present + profiles: domain,private,public + enabled: true + diff --git a/tasks/main.yml b/tasks/main.yml new file mode 100644 index 0000000..07dd752 --- /dev/null +++ b/tasks/main.yml @@ -0,0 +1,3 @@ +--- +- name: Configure Windows Firewall + ansible.builtin.include_tasks: firwall.yml