Replies: 3 comments 1 reply
-
I'm not entirely sure what Regarding "global" variables - it is already a thing; see https://github.com/umputun/spot#passing-variables-from-one-script-command-to-another. In your examples, the vars you set are some low-level things like std_out or execution_time. Unless I missing the point, I don't really see the use case for those vars and why passing those values to other tasks/commands is useful. regarding " can just print them out" - the Just to reiterate the current status of vars: each |
Beta Was this translation helpful? Give feedback.
-
Thanks for quick responce. Regarding For good example of return values check out ansible copy module returns, later somehow we can assign one of this values to environment variable. And yes, we still can write everything in shell and export needed values. If this proposal doesn't suit your product vision, feel free to close it. I'm ok with it. All I wanted - to practice in programming in golang. Will wait for |
Beta Was this translation helpful? Give feedback.
-
moving to discussions |
Beta Was this translation helpful? Give feedback.
-
Based on ansible, terraform experience I came up with idea of having global state that could consist of some usefull information from all of tasks/targets.
Example state from simplified playbook could look like map that I will show in yaml format:
So later we can somehow reuse those values like we do it in ansible, but right now we can just print them out.
If you like this idea or you have your own idea of implementation I would like to participate.
Beta Was this translation helpful? Give feedback.
All reactions