Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature]: append firewall rule on firewall #610

Open
wouter-evolane opened this issue Oct 25, 2024 · 0 comments
Open

[Feature]: append firewall rule on firewall #610

wouter-evolane opened this issue Oct 25, 2024 · 0 comments
Labels
enhancement issues that request a enhancement

Comments

@wouter-evolane
Copy link

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 wouter-evolane added the enhancement issues that request a enhancement label Oct 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement issues that request a enhancement
Projects
None yet
Development

No branches or pull requests

1 participant