ansible_linode icon indicating copy to clipboard operation
ansible_linode copied to clipboard

[Feature]: append firewall rule on firewall

Open wouter-evolane opened this issue 1 year ago • 1 comments

Description

Running example playbook will result in firewall rule1 to dissapear from the firewall and rule2 to be the only one enforced. I'm looking for a way to not be required to repeat the entire existing firewall config

New/Affected Components

linode.cloud.firewall

Example Ansible Config

- name: test linode firewall
  gather_facts: false
  hosts: localhost
  tasks:
    - name: Create a Linode Firewall1
      linode.cloud.firewall:
        label: "test_linode"
        rules:
          inbound:
          - label: "test1"
            addresses:
              ipv4:
              - "1.1.1.1/32"
            description: "test1"
            ports: 1
            protocol: TCP
            action: ACCEPT
          outbound_policy: ACCEPT
          inbound_policy: ACCEPT
        state: present
    - name: Create a Linode Firewall2
      linode.cloud.firewall:
        label: "test_linode"
        rules:
          inbound:
          - label: "test2"
            addresses:
              ipv4:
              - "2.2.2.2/32"
            description: "test2"
            ports: 2
            protocol: TCP
            action: ACCEPT
        state: present

wouter-evolane avatar Oct 25 '24 11:10 wouter-evolane

I would love to take this task!

christinepuk avatar Mar 10 '25 13:03 christinepuk