Ansible/bibliotheque/yml/Windows-Conf-Firewall-OpenPort.yml
2024-04-01 10:40:20 +02:00

17 lines
387 B
YAML

---
- name: "Parametrage firewall"
hosts: windows
gather_facts: no
become: false
tasks:
- name: Open firewall port 80 for the IIS web server on {{ inventory_hostname }}
win_firewall_rule:
name: "{{ inventory_hostname }}_80"
enable: yes
state: present
localport: 80
action: Allow
direction: In
protocol: Tcp
...