Changeset - 1561f2f0a525
[Not reviewed]
0 1 0
Branko Majic (branko) - 2 months ago 2024-02-18 14:12:44
branko@majic.rs
MAR-194: Validate maintenance_allowed_sources parameter.
1 file changed with 6 insertions and 0 deletions:
0 comments (0 inline, 0 general)
roles/common/tasks/main.yml
Show inline comments
 
@@ -246,6 +246,12 @@
 
  notify:
 
    - Restart ferm
 

	
 
- name: Verify maintenance_allowed_sources parameter
 
  fail:
 
    msg: "Items in maintenance_allowed_sources must IPv4/IPv6 addresses or subnets: {{ item }}"
 
  when: "not (item | ipv4 or item | ipv6)"
 
  with_items: "{{ maintenance_allowed_sources }}"
 

	
 
- name: Deploy ferm base rules
 
  template:
 
    src: "00-base.conf.j2"
0 comments (0 inline, 0 general)