Commit Graph

42 Commits (de956c57feb33b4912a91e2206da503f44655cd3)

Author SHA1 Message Date
James Tanner 6008ea40ee Add more error detail to the service module for FreeBSD 11 years ago
Michael DeHaan d34a26e307 Undo an inadvertant revert from template changes so we still allow pythonic imports in module land. 11 years ago
James Tanner d154bf8781 Revert templating enhancements from 73dbab70 e6c28658 d409352c 9858b1f2 4587528b 9b1fe455 214b0b05 8d3db803 7f9504d1 5031104c 35cb9dc2 2bd8cb57 1e85c754 11 years ago
Michael DeHaan 9858b1f2f3 Enable imports to work on a snippet based system, allowing for instance a library of common EC2 functions
to be reused between modules.  See library/system/service and library/system/ping for initial examples.  Can
work the old way to just import 'basic', or can import the new way to import multiple pieces of code from
module_utils/.
11 years ago
James Tanner 40574c1938 Fixes #4448 reloaded services should be started if not running 11 years ago
Scott Sturdivant 4d24e2e29f If the output of rcvar isn't a key=value pair, ignore it. 11 years ago
Michael DeHaan 21d4400c96 Misc pep8 fixes 11 years ago
Michael DeHaan 119b6d73dd Remove examples of module antipattern of setting the choices array for boolean types. 11 years ago
Michael DeHaan f6c3dce497 Merge pull request #4336 from orkaa/devel
Fixes service update-rc.d functionality on debian
11 years ago
Martijn Lina 4cd3b9d637 replace dashes in rc.conf keys (which are based on freebsd rc.d filenames) to underscores 11 years ago
Nace Oroz 672a0c04e4 Fixes service update-rc.d functionality on debian 11 years ago
cdigiovanni 7ff2b3befd Added support to disable and enable upstart jobs 11 years ago
James Cammarata c2e02fbd6b Minor tweak to service changed logic from the previous commit 11 years ago
James Cammarata f62093da56 Merge branch 'service-enable-fix' of https://github.com/gottwald/ansible into gottwald-service-enable-fix 11 years ago
Petr Svoboda 8d290e3394 Fix traceback in service module when svc_cmd is None (2nd fix)
When service module is used on unsupported Linux system where init
script is used directly, LinuxService.svc_cmd is None so .endswith()
fails.

This extends fix from e2f20db534 also
for state=restarted.

Fixes issue #3533
11 years ago
Ingo Gottwald f7adbf2f29 Bugfix service module: Only change service state when needed 11 years ago
James Cammarata 72eaa0570e Allow service module to manage services not ending in .service
Fixes #3417
11 years ago
James Cammarata b2741f451e Fixes to the service module for Ubuntu 12.04 (LTS)
Fixes #3615
Fixes #3572
11 years ago
James Cammarata 9a3a3e648b Check for systemd ownership of a service even if an init.d script exists
Also slight modification to the error message in the earlier commit that
modified the update-rc.d detection portion of the code

Fixes #3474
11 years ago
James Cammarata 7c8aa669cf Minor fix to account for template service names in systemctl 11 years ago
James Cammarata 6c3af4df81 Fix for update-rc.d based systems that also have systemd installed
By default, the service module had assumed that if the system had the
update-rc.d binary, the service was either managed via upstart or standard
sysV init-style scripts. This patch adds a check for systemctl ahead
of the other methods when update-rc.d is detected, and also simplifies
the logic around the detection of systemctl-managed services
11 years ago
James Cammarata 26a8d4ce9f Added 'reloaded' state to list of states checked for bounced services
Fixes #3556
11 years ago
Petr Svoboda e2f20db534 Fix traceback in service module when svc_cmd is None
When service module is used on unsupported Linux system where init
script is used directly, LinuxService.svc_cmd is None so .endswith()
fails.

Fixes issue #3533
11 years ago
Michael DeHaan 8fe15f0a30 Merge pull request #3426 from trbs/services_sleep_option
sleep option for service module which adds a pauze between stopping and ...
11 years ago
Brian Coca 0664e36aa2 fixed check mode
Signed-off-by: Brian Coca <briancoca+dev@gmail.com>
11 years ago
trbs 3b2173b6df sleep option for service module which adds a pauze between stopping and starting a service using state=restarted. This helps for bad scripts that exist immediatly after signaling a process to stop. 11 years ago
Antti Rasinen 93fc3391fe Fix service enable on FreeBSD
Some services have a knob (i.e. rc.conf setting) whose name
differs from that of the script. For example, lockd process
is controlled with a script called lockd, but the rc.conf
value is rpc_lockd_enable.

Fixes issue #3382.
11 years ago
martin f. krafft 85b8538e0e Expand usage of Python 2.6 if statement
Syntax like "'foo' if bar else 'baz'" is not supported by all Python
versions targetted by Ansible. Hence we break it up.

Signed-off-by: martin f. krafft <madduck@madduck.net>
11 years ago
martin f. krafft 3df2e15277 Let update-rc.d set changed flag properly
When update-rc.d is used to enable/disable service, the changed flag was
always true (see #2189). This commit fixes that.

Signed-off-by: martin f. krafft <madduck@madduck.net>
11 years ago
Michael DeHaan 3f8aa8aec5 Fix up some module docs formatting errors. 11 years ago
Michael DeHaan 61ac8d03af Clarify module docs 11 years ago
Michael DeHaan 51ba3d8c3d Merge pull request #3230 from sayap/openrc
Add OpenRC support to the service module.
11 years ago
Yap Sok Ann bcca609bc6 Add OpenRC support to the service module. 11 years ago
Jan-Piet Mens 5c69918d53 DOCS: standardize on EXAMPLES (a.k.a. Docs-JumboPatch JetLag Edition)
Migrated all examples: in DOCUMENTATION=''' string to standalone EXAMPLES=''' string
  Added deprecation warning to moduledev.rst and remove deprecated example from it
  Fixed up a few typos and uppercased some acronyms.
  add consistency to how EXAMPLES are formatted
11 years ago
Michael DeHaan 69d514100c Refine error message. 11 years ago
Michael DeHaan 0b30c74e86 Merge branch 'rc.d-systemd' of git://github.com/glensc/ansible into sysd 11 years ago
Scott Sturdivant b274fb9774 Fixes #2991: Service module pattern argument ignored. 11 years ago
Elan Ruusamäe d3a2b1dbbb no need to init None to None 12 years ago
Elan Ruusamäe 6949a9fbe4 LinuxService: avoid enforcing systemd even if init.d script was found 12 years ago
madema 02e41f3e56 Update service 12 years ago
madema f7c3b73336 Added AIX class in the service module to control AIX SRC processes. 12 years ago
Michael DeHaan 391fb98ee2 Allow modules to be categorized, and also sort them when generating the documentation. 12 years ago