-
Notifications
You must be signed in to change notification settings - Fork 23.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Service restart on Solaris 10 broken #20102
Labels
affects_2.2
This issue/PR affects Ansible v2.2
bug
This issue/PR relates to a bug.
module
This issue/PR relates to a module.
solaris
Solaris community
Comments
ansibot
added
affects_2.2
This issue/PR affects Ansible v2.2
bug_report
module
This issue/PR relates to a module.
needs_triage
Needs a first human triage before being processed.
labels
Jan 10, 2017
abadger
removed
the
needs_triage
Needs a first human triage before being processed.
label
Jan 11, 2017
FWIW this is also affecting SmartOS instances:
|
Same problem here. As a work-around it is possible to put two tasks in a playbook:
|
We can use |
jasperla
added a commit
to jasperla/ansible
that referenced
this issue
Jan 25, 2017
bcoca
pushed a commit
that referenced
this issue
Jan 25, 2017
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
affects_2.2
This issue/PR affects Ansible v2.2
bug
This issue/PR relates to a bug.
module
This issue/PR relates to a module.
solaris
Solaris community
ISSUE TYPE
COMPONENT NAME
service module
ANSIBLE VERSION
OS / ENVIRONMENT
Running from macOS 10.12
Managing Solaris 10 10/09 s10s_u8wos_08a SPARC
SUMMARY
Service states restarted and reloaded raise an error
STEPS TO REPRODUCE
EXPECTED RESULTS
Service system-log is restarted
ACTUAL RESULTS
The changes introduced with ansible/ansible-modules-core#5406 broke compability to Solaris 10.
On Solaris 10 there is no option "-s" for subcommands restart and refresh:
Only the subcommands enable and disable support option "-s".
man page Solaris 10: https://docs.oracle.com/cd/E23823_01/html/816-5166/svcadm-1m.html
man page Solaris 11: https://docs.oracle.com/cd/E53394_01/html/E54764/svcadm-1m.html
So for Solaris 10 this option should be omitted for restart and refresh.
We need something like
I don't know if the service module can get distribution_version from facts.py...
The text was updated successfully, but these errors were encountered: