mirror of https://github.com/ansible/ansible.git
Included support to AIX group of subsystems on service module (#33043)
* Included support to AIX group subsystems AIX systems has subsystems as services but also uses group subsystems. For example, spooler is a group subsystem to services qdaemon, writesrv, and lpd. This change enables the possibility to use also the group susbsystmes such as spooler, nfs, etc. When the service name is informed, first the module will check if the name is a subsystem, if not it will check if the name is a group subsystem and also it subsystems states. This change makes services more flexible with AIX systems. * Included test/legacy/aix_services.yml for tests As discussed on IRC ansible-devel channes, was include the legacy tests for further manual tests.pull/50673/head
parent
b52d7d56d9
commit
3ec469f904
@ -0,0 +1,24 @@
|
||||
---
|
||||
- name: Services/Subsystems tests for AIX
|
||||
hosts: localhost
|
||||
connection: local
|
||||
tasks:
|
||||
- name: spooler shutdown
|
||||
service:
|
||||
name: spooler
|
||||
state: started
|
||||
|
||||
- name: stopping sendmail
|
||||
service:
|
||||
name: sendmail
|
||||
state: stopped
|
||||
|
||||
- name: starting sendmail
|
||||
service:
|
||||
name: sendmail
|
||||
state: started
|
||||
|
||||
- name: starting an inexistent subsystem and group subsystem
|
||||
service:
|
||||
name: fakeservice
|
||||
state: stopped
|
Loading…
Reference in New Issue