Class: Ansible::Ruby::Modules::Systemd

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

Overview

Controls systemd services on remote hosts.

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

#daemon_reload:yes, ...

Returns run daemon-reload before doing any other operations, to make sure systemd has read any changes.

Returns:

  • (:yes, :no, nil)

    run daemon-reload before doing any other operations, to make sure systemd has read any changes.



32
# File 'lib/ansible/ruby/modules/generated/system/systemd.rb', line 32

attribute :daemon_reload

#enabledSymbol?

Returns Whether the service should start on boot. B(At least one of state and enabled are required.).

Returns:

  • (Symbol, nil)

    Whether the service should start on boot. B(At least one of state and enabled are required.)



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

attribute :enabled

#forceSymbol?

Returns Whether to override existing symlinks.

Returns:

  • (Symbol, nil)

    Whether to override existing symlinks.



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

attribute :force

#maskedSymbol?

Returns Whether the unit should be masked or not, a masked unit is impossible to start.

Returns:

  • (Symbol, nil)

    Whether the unit should be masked or not, a masked unit is impossible to start.



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

attribute :masked

#nameString?

Returns Name of the service. When using in a chroot environment you always need to specify the full name i.e. (crond.service).

Returns:

  • (String, nil)

    Name of the service. When using in a chroot environment you always need to specify the full name i.e. (crond.service).



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

attribute :name

#no_block:yes, ...

Returns Do not synchronously wait for the requested operation to finish. Enqueued job will continue without Ansible blocking on its completion.

Returns:

  • (:yes, :no, nil)

    Do not synchronously wait for the requested operation to finish. Enqueued job will continue without Ansible blocking on its completion.



44
# File 'lib/ansible/ruby/modules/generated/system/systemd.rb', line 44

attribute :no_block

#scope:system, ...

Returns run systemctl within a given service manager scope, either as the default system scope (system), the current user’s scope (user), or the scope of all users (global).

Returns:

  • (:system, :user, :global, nil)

    run systemctl within a given service manager scope, either as the default system scope (system), the current user’s scope (user), or the scope of all users (global).



40
# File 'lib/ansible/ruby/modules/generated/system/systemd.rb', line 40

attribute :scope

#state:reloaded, ...

Returns C(started)/C(stopped) are idempotent actions that will not run commands unless necessary. C(restarted) will always bounce the service. C(reloaded) will always reload.

Returns:

  • (:reloaded, :restarted, :started, :stopped, nil)

    C(started)/C(stopped) are idempotent actions that will not run commands unless necessary. C(restarted) will always bounce the service. C(reloaded) will always reload.



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

attribute :state

#user:yes, ...

Returns (deprecated) run “systemctl“ talking to the service manager of the calling user, rather than the service manager of the system.,This option is deprecated and will eventually be removed in 2.11. The “scope“ option should be used instead.

Returns:

  • (:yes, :no, nil)

    (deprecated) run “systemctl“ talking to the service manager of the calling user, rather than the service manager of the system.,This option is deprecated and will eventually be removed in 2.11. The “scope“ option should be used instead.



36
# File 'lib/ansible/ruby/modules/generated/system/systemd.rb', line 36

attribute :user