-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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] Provide built command in the module output #6160
Conversation
/hold We may want to wait for #6161 first. I'll rebase and add the appropriate doc entry. |
Doc patch merged, this one is now rebased against main, and integrates the asked modifications. We can therefore continue with reviews here, should be ready. |
Docs Build 📝Thank you for contribution!✨ This PR has been merged and your docs changes will be incorporated when they are next published. |
The action plugin will make the whole thing faster. It requires a tiny change to the community.general.make module[1]. [1] ansible-collections/community.general#6160
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.
Besides this, looks good to me.
Replacing a whole role by a single action plugin allows a faster run, while reducing drastically the amount of tasks. Note that this action plugin requires a small change to the community.general.make module[1] - it should be merged in the following hours/days. [1] ansible-collections/community.general#6160
Replacing a whole role by a single action plugin allows a faster run, while reducing drastically the amount of tasks. Note that this action plugin requires a small change to the community.general.make module[1] - it should be merged in the following hours/days. [1] ansible-collections/community.general#6160
It may happen operator wants to get the built command instead of all the parameters. This change injects a new entry in the dict output, showing what command way actually launched. This patch also takes the opportunity to add missing dots to some documentation lines.
Replacing a whole role by a single action plugin allows a faster run, while reducing drastically the amount of tasks. Note that this action plugin requires a small change to the community.general.make module[1] - it should be merged in the following hours/days. [1] ansible-collections/community.general#6160
Replacing a whole role by a single action plugin allows a faster run, while reducing drastically the amount of tasks. Note that this action plugin requires a small change to the community.general.make module[1] - it should be merged in the following hours/days. [1] ansible-collections/community.general#6160
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.
Looks good to me. If nobody objects. I'll merge this beginning of next week.
Replacing a whole role by a single action plugin allows a faster run, while reducing drastically the amount of tasks. Note that this action plugin requires a small change to the community.general.make module[1] - it should be merged in the following hours/days. [1] ansible-collections/community.general#6160
Backport to stable-6: 💚 backport PR created✅ Backport PR branch: Backported as #6186 🤖 @patchback |
It may happen operator wants to get the built command instead of all the parameters. This change injects a new entry in the dict output, showing what command way actually launched. This patch also takes the opportunity to add missing dots to some documentation lines. (cherry picked from commit a49ad34)
@cjeanner thanks for your contribution! |
…n the module output (#6186) [make] Provide built command in the module output (#6160) It may happen operator wants to get the built command instead of all the parameters. This change injects a new entry in the dict output, showing what command way actually launched. This patch also takes the opportunity to add missing dots to some documentation lines. (cherry picked from commit a49ad34) Co-authored-by: Cédric Jeanneret <39397510+cjeanner@users.noreply.github.com>
Replacing a whole role by a single action plugin allows a faster run, while reducing drastically the amount of tasks. Note that this action plugin requires a small change to the community.general.make module[1] - it should be merged in the following hours/days. [1] ansible-collections/community.general#6160
Replacing a whole role by a single action plugin allows a faster run, while reducing drastically the amount of tasks. We also expose the "plugins" directory at the root of the repository for an easier consumption. Note that this action plugin requires a small change to the community.general.make module[1] - it should be merged in the following hours/days. [1] ansible-collections/community.general#6160
Replacing a whole role by a single action plugin allows a faster run, while reducing drastically the amount of tasks. We also expose the "plugins" directory at the root of the repository for an easier consumption. Note that this action plugin requires a small change to the community.general.make module[1] - it should be merged in the following hours/days. [1] ansible-collections/community.general#6160
Replacing a whole role by a single action plugin allows a faster run, while reducing drastically the amount of tasks. We also expose the "plugins" directory at the root of the repository for an easier consumption. You want to ensure you're using latest community.general ansible collection, in order to get the new "command" output value[1]. [1] ansible-collections/community.general#6160
It may happen operator wants to get the built command instead of all the parameters. This change injects a new entry in the dict output, showing what command way actually launched.
SUMMARY
This change adds a new information to the community.general.make module output: the built command that way
launched by the run_command.
The goal here is to help operator debugging potential issues, or just allow them to store this information in a log, for
instance.
ISSUE TYPE
COMPONENT NAME
make
ADDITIONAL INFORMATION
Before:
After: