Class: Ansible::Ruby::Modules::Seport

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

Overview

Manages SELinux network port type definitions.

Instance Method Summary collapse

Methods inherited from Base

#ansible_name, #to_h

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

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

Constructor Details

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

Instance Method Details

#portsInteger, ...

Returns Ports or port ranges. Can be a list (since 2.6) or comma separated string.

Returns:

  • (Integer, Array<String>, String)

    Ports or port ranges. Can be a list (since 2.6) or comma separated string.



12
# File 'lib/ansible/ruby/modules/generated/system/seport.rb', line 12

attribute :ports

#proto:tcp, :udp

Returns Protocol for the specified port.

Returns:

  • (:tcp, :udp)

    Protocol for the specified port.



16
# File 'lib/ansible/ruby/modules/generated/system/seport.rb', line 16

attribute :proto

#reload:yes, ...

Returns Reload SELinux policy after commit.

Returns:

  • (:yes, :no, nil)

    Reload SELinux policy after commit.



28
# File 'lib/ansible/ruby/modules/generated/system/seport.rb', line 28

attribute :reload

#setypeString

Returns SELinux type for the specified port.

Returns:

  • (String)

    SELinux type for the specified port.



20
# File 'lib/ansible/ruby/modules/generated/system/seport.rb', line 20

attribute :setype

#state:absent, :present

Returns Desired boolean value.

Returns:

  • (:absent, :present)

    Desired boolean value.



24
# File 'lib/ansible/ruby/modules/generated/system/seport.rb', line 24

attribute :state