add allowed range to ssh
continuous-integration/drone/push Build was killed Details

This commit is contained in:
Torma Kristóf 2023-08-28 09:55:03 +02:00
parent e924d3e33c
commit 85fb26bf52
3 changed files with 4 additions and 3 deletions

View File

@ -1,7 +1,7 @@
---
ansible_become: true
ansible_user: ansible@intra.tormakris.dev
webgw_allowedranges:
allowedranges:
- 192.168.69.0/24
- 192.168.1.0/24
...

View File

@ -18,5 +18,6 @@
community.general.ufw:
rule: allow
port: ssh
src: 192.168.69.0/24
src: "{{ item }}"
with_items: "{{ allowedranges }}"
...

View File

@ -4,7 +4,7 @@
rule: allow
port: https
src: "{{ item }}"
with_items: "{{ webgw_allowedranges }}"
with_items: "{{ allowedranges }}"
- name: "Install Nginx via apt"
ansible.builtin.apt: