-
Notifications
You must be signed in to change notification settings - Fork 70
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
Make edpm_kernel
compliant with ansible-lint production
profile
#408
Make edpm_kernel
compliant with ansible-lint production
profile
#408
Conversation
Build failed (check pipeline). Post https://review.rdoproject.org/zuul/buildset/67c9802d7c0a45a899ec22b10ac968ea ✔️ openstack-k8s-operators-content-provider SUCCESS in 1h 55m 47s |
42df36b
to
59851b4
Compare
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.
this looks good to me now, thanks for addressing my comment :)
acctully this is going to fail with RUNNING HANDLER [osp.edpm.edpm_kernel : Reload sysctl] ************************* |
- Added `Sysctl reload` as handler removing a `when` clause as for ansible best practice - Replace a `command` task with `slurp` module to get remote file content and `set_fact` task to define the `cmdline` variable - Fixed indentation and spacing for better readability - Moved jinja templating at the end of a task name - Added `changed_when` and `failed_when` in command tasks - Added a debug task to whitelist - Declared permissions as strings in `mode` parameter as for ansible best practices Signed-off-by: Roberto Alfieri <[email protected]>
59851b4
to
586d566
Compare
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.
thanks!
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: bogdando, rebtoor, SeanMooney The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
405121d
into
openstack-k8s-operators:main
Sysctl reload
as handler removing awhen
clause as for ansible best practicecommand
task withslurp
module to get remote file content andset_fact
task to define thecmdline
variablechanged_when
andfailed_when
in command tasksmode
parameter as for ansible best practices