initialize and allow SSH

This commit is contained in:
L3D 2022-12-29 04:02:02 +01:00
parent b5a7e95b01
commit c9ce2c8906
Signed by: l3d
GPG key ID: CD08445BFF4313D1
3 changed files with 16 additions and 1 deletions

View file

@ -1,6 +1,6 @@
MIT License MIT License
Copyright (c) <year> <copyright holders> Copyright (c) 2022 L3D <l3d@c3woc.de>
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: 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:

12
tasks/firewall.yml Normal file
View file

@ -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

3
tasks/main.yml Normal file
View file

@ -0,0 +1,3 @@
---
- name: Configure Windows Firewall
ansible.builtin.include_tasks: firwall.yml