Class: Ansible::Ruby::Modules::Selinux

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

Overview

Configures the SELinux mode and policy. A reboot may be required after usage. Ansible will not issue this reboot but will let you know when it is required.

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

#confString?

Returns path to the SELinux configuration file, if non-standard.

Returns:

  • (String, nil)

    path to the SELinux configuration file, if non-standard



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

attribute :conf

#policyString?

Returns name of the SELinux policy to use (example: C(targeted)) will be required if state is not C(disabled).

Returns:

  • (String, nil)

    name of the SELinux policy to use (example: C(targeted)) will be required if state is not C(disabled)



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

attribute :policy

#state:enforcing, ...

Returns The SELinux mode.

Returns:

  • (:enforcing, :permissive, :disabled)

    The SELinux mode



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

attribute :state