Class: Ansible::Ruby::Modules::Firewalld

Inherits:
Base show all
Defined in:
lib/ansible/ruby/modules/generated/extras/system/firewalld.rb

Overview

This module allows for addition or deletion of services and ports either tcp or udp in either running or permanent firewalld rules.

Instance Method Summary collapse

Methods inherited from Base

#ansible_name, #to_h

Methods inherited from Ansible::Ruby::Models::Base

attr_option, attr_options, attribute, #initialize, remove_existing_validations, #to_h, validates

Constructor Details

This class inherits a constructor from Ansible::Ruby::Models::Base

Instance Method Details

#immediateBoolean?

Returns Should this configuration be applied immediately, if set as permanent.

Returns:

  • (Boolean, nil)

    Should this configuration be applied immediately, if set as permanent



39
# File 'lib/ansible/ruby/modules/generated/extras/system/firewalld.rb', line 39

attribute :immediate

#interfaceString?

Returns The interface you would like to add/remove to/from a zone in firewalld.

Returns:

  • (String, nil)

    The interface you would like to add/remove to/from a zone in firewalld



27
# File 'lib/ansible/ruby/modules/generated/extras/system/firewalld.rb', line 27

attribute :interface

#masqueradeString?

Returns The masquerade setting you would like to enable/disable to/from zones within firewalld.

Returns:

  • (String, nil)

    The masquerade setting you would like to enable/disable to/from zones within firewalld



51
# File 'lib/ansible/ruby/modules/generated/extras/system/firewalld.rb', line 51

attribute :masquerade

#permanentString?

Returns Should this configuration be in the running firewalld configuration or persist across reboots.

Returns:

  • (String, nil)

    Should this configuration be in the running firewalld configuration or persist across reboots.



35
# File 'lib/ansible/ruby/modules/generated/extras/system/firewalld.rb', line 35

attribute :permanent

#portString?

Returns Name of a port or port range to add/remove to/from firewalld. Must be in the form PORT/PROTOCOL or PORT-PORT/PROTOCOL for port ranges.

Returns:

  • (String, nil)

    Name of a port or port range to add/remove to/from firewalld. Must be in the form PORT/PROTOCOL or PORT-PORT/PROTOCOL for port ranges.



15
# File 'lib/ansible/ruby/modules/generated/extras/system/firewalld.rb', line 15

attribute :port

#rich_ruleString?

Returns Rich rule to add/remove to/from firewalld.

Returns:

  • (String, nil)

    Rich rule to add/remove to/from firewalld.



19
# File 'lib/ansible/ruby/modules/generated/extras/system/firewalld.rb', line 19

attribute :rich_rule

#serviceString?

Returns Name of a service to add/remove to/from firewalld - service must be listed in /etc/services.

Returns:

  • (String, nil)

    Name of a service to add/remove to/from firewalld - service must be listed in /etc/services.



11
# File 'lib/ansible/ruby/modules/generated/extras/system/firewalld.rb', line 11

attribute :service

#sourceString?

Returns The source/network you would like to add/remove to/from firewalld.

Returns:

  • (String, nil)

    The source/network you would like to add/remove to/from firewalld



23
# File 'lib/ansible/ruby/modules/generated/extras/system/firewalld.rb', line 23

attribute :source

#state:enabled, :disabled

Returns Should this port accept(enabled) or reject(disabled) connections.

Returns:

  • (:enabled, :disabled)

    Should this port accept(enabled) or reject(disabled) connections.



43
# File 'lib/ansible/ruby/modules/generated/extras/system/firewalld.rb', line 43

attribute :state

#timeoutInteger?

Returns The amount of time the rule should be in effect for when non-permanent.

Returns:

  • (Integer, nil)

    The amount of time the rule should be in effect for when non-permanent.



47
# File 'lib/ansible/ruby/modules/generated/extras/system/firewalld.rb', line 47

attribute :timeout

#zone:work, ...

Returns The firewalld zone to add/remove to/from (NOTE: default zone can be configured per system but “public” is default from upstream. Available choices can be extended based on per-system configs, listed here are “out of the box” defaults).

Returns:

  • (:work, :drop, :internal, :external, :trusted, :home, :dmz, :public, :block, nil)

    The firewalld zone to add/remove to/from (NOTE: default zone can be configured per system but “public” is default from upstream. Available choices can be extended based on per-system configs, listed here are “out of the box” defaults).



31
# File 'lib/ansible/ruby/modules/generated/extras/system/firewalld.rb', line 31

attribute :zone