Class: Ansible::Ruby::Modules::Systemd
- Inherits:
-
Base
- Object
- Ansible::Ruby::Models::Base
- Base
- Ansible::Ruby::Modules::Systemd
- Defined in:
- lib/ansible/ruby/modules/generated/system/systemd.rb
Overview
Controls systemd services on remote hosts.
Instance Method Summary collapse
-
#daemon_reload ⇒ :yes, ...
Run daemon-reload before doing any other operations, to make sure systemd has read any changes.
-
#enabled ⇒ Symbol?
Whether the service should start on boot.
-
#force ⇒ Symbol?
Whether to override existing symlinks.
-
#masked ⇒ Symbol?
Whether the unit should be masked or not, a masked unit is impossible to start.
-
#name ⇒ String?
Name of the service.
-
#no_block ⇒ :yes, ...
Do not synchronously wait for the requested operation to finish.
-
#scope ⇒ :system, ...
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).
-
#state ⇒ :reloaded, ...
C(started)/C(stopped) are idempotent actions that will not run commands unless necessary.
-
#user ⇒ :yes, ...
(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.
Methods inherited from Base
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.
32 |
# File 'lib/ansible/ruby/modules/generated/system/systemd.rb', line 32 attribute :daemon_reload |
#enabled ⇒ Symbol?
Returns 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 |
#force ⇒ Symbol?
Returns Whether to override existing symlinks.
24 |
# File 'lib/ansible/ruby/modules/generated/system/systemd.rb', line 24 attribute :force |
#masked ⇒ Symbol?
Returns 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 |
#name ⇒ String?
Returns 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.
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).
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.
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.
36 |
# File 'lib/ansible/ruby/modules/generated/system/systemd.rb', line 36 attribute :user |