ansible.builtin.awall (v2.4.3.0-1) — module

Manage awall policies

| "added in version" 2.4 of ansible.builtin"

Authors: Ted Trask (@tdtrask) <ttrask01@yahoo.com>

stableinterface | supported by community

Install Ansible via pip

Install with pip install ansible==2.4.3.0.post1

Description

This modules allows for enable/disable/activate of I(awall) policies. Alpine Wall (I(awall)) generates a firewall configuration from the enabled policy files and activates the configuration on the system.

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Enable "foo" and "bar" policy
  awall:
    name: foo,bar
    state: enabled
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Disable "foo" and "bar" policy and activate new rules
  awall:
    name: foo,bar
    state: disabled
    activate: False
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Activate currently enabled firewall rules
  awall:
    activate: True

Inputs

    
name:
    default: null
    description:
    - A policy name, like C(foo), or multiple policies, like C(foo, bar).

state:
    choices:
    - enabled
    - disabled
    default: enabled
    description:
    - The policy(ies) will be C(enabled)
    - The policy(ies) will be C(disabled)

activate:
    default: false
    description:
    - Activate the new firewall rules. Can be run with other steps or on it's own.