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, fix_inclusion, #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, ...
32 |
# File 'lib/ansible/ruby/modules/generated/system/systemd.rb', line 32 attribute :daemon_reload |
#enabled ⇒ Symbol?
20 |
# File 'lib/ansible/ruby/modules/generated/system/systemd.rb', line 20 attribute :enabled |
#force ⇒ Symbol?
24 |
# File 'lib/ansible/ruby/modules/generated/system/systemd.rb', line 24 attribute :force |
#masked ⇒ Symbol?
28 |
# File 'lib/ansible/ruby/modules/generated/system/systemd.rb', line 28 attribute :masked |
#name ⇒ String?
12 |
# File 'lib/ansible/ruby/modules/generated/system/systemd.rb', line 12 attribute :name |
#no_block ⇒ :yes, ...
44 |
# File 'lib/ansible/ruby/modules/generated/system/systemd.rb', line 44 attribute :no_block |
#scope ⇒ :system, ...
40 |
# File 'lib/ansible/ruby/modules/generated/system/systemd.rb', line 40 attribute :scope |
#state ⇒ :reloaded, ...
16 |
# File 'lib/ansible/ruby/modules/generated/system/systemd.rb', line 16 attribute :state |
#user ⇒ :yes, ...
36 |
# File 'lib/ansible/ruby/modules/generated/system/systemd.rb', line 36 attribute :user |