diff --git a/tasks/firewall.yml b/tasks/firewall.yml new file mode 100644 index 0000000..ce83e3a --- /dev/null +++ b/tasks/firewall.yml @@ -0,0 +1,10 @@ +--- +- name: Firewall rule to allow OBS-Studio Node-Exporter Monitoring on TCP port 9407 + community.windows.win_firewall_rule: + name: obs-studio-monitoring + localport: 9407 + action: allow + direction: in + protocol: tcp + state: present + enabled: true diff --git a/tasks/main.yml b/tasks/main.yml index 5725652..d49b5da 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -1,6 +1,6 @@ --- - name: Create Download dirs - ansile.builtin.include_tasks: + ansible.builtin.include_tasks: file: 'directory.yml' - name: Download OBS Studio Exporter @@ -10,3 +10,7 @@ - name: Install OBS Exporter ansible.builtin.include_tasks: file: 'install.yml' + +- name: Configure Windows Firewall + ansible.builtin.include_tasks: + file: 'firewall.yml'