I would like to have the possibility to execute a rather lengthy shell skript on selected SSH Terminal connections on demand. Due to multiple reasons the usual anwser "just use ansible" is not usable here.
In general, I have this working using the "Terminal Command" type. I just have some special wishes that I just can't get to work
I cannot use "Custom Field" contents in the script. Is this really not possible, or am I missing something?
The string "{HOME}" is being replace by the "HOME"-key (carriage return). That's extremely unhelpful when using shell scripts, that are supposed to work for a multitude of different targets. (Not even discussing, what a headache the identification of this behaviour was, because I never new that this doesn't only happen for autotype makros)
What I really would like is a "copy the contents of a SHELL SCRIPT entry to a given filename and execute a number of shell commands afterwards" (move the file to one or more targets, depending on server-environment, change ownerships/permissions)
I've tried googling, reading documentation, experimented with a lot of different ideas, but I cannot work around (in the third case: implement) any of this points. I'm sure I've missed lot's of information, but I'm about to give up.
Does anyone have some hints what I might have missed?
Regards,
Jan
P.S.: My main target is RDM on Windows. Fun side-fact: A lot of the configuration options for this area of entry types seem to be (some more, some less) sublty different on MacOS, causing an interesting outlook if team-members using Apple devices need to use these entries.