-
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
apt: add policy_rc_d option #47191
apt: add policy_rc_d option #47191
Conversation
Hi @tchernomax, thank you for submitting this pull-request! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
SUMMARY
Add policy_rc_d option to apt module.
In order to prevent a service start at package installation, it is a common practice to change the
/usr/policy-rc.d
file (to exit 101):https://people.debian.org/~hmh/invokerc.d-policyrc.d-specification.txt
This
policy_rc_d
option allow the user the temporarily force the/usr/policy-rc.d
to exit with a specified code. Allowing the user, for example, to temporarily forbid the dpkg triggered service start.ISSUE TYPE
COMPONENT NAME
apt
ANSIBLE VERSION
ADDITIONAL INFORMATION
It make the pull request #32856 obsolete.