You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using task to write package installers. Specifically to install gitea on macos. I know I am using task outside of its design scope. But it is easier to use than ansible or chief. Specifically the tasks at hand which I am dealing with and missing support from "task". I know I can do it via shell commands but it wouldn't be portable.
render go template to a file (and set permission and ownership)
template either from literal in Taskfile or from a given location on disk
bonus point if I can render into memory and compare the existing file content. Multiple merging strategies:
fail if different
skip if the same
merge if there are no merge conflicts
remove literal line (rendered template) from the file if it is present
add line to a file if it is not already present
The text was updated successfully, but these errors were encountered:
I use this kind of feature pretty often in ansible. I think all of them support template string literals or files in some way. In Ansible they are broken into three related modules, the third being blocks in a file, not just a line.
I am using task to write package installers. Specifically to install gitea on macos. I know I am using task outside of its design scope. But it is easier to use than ansible or chief. Specifically the tasks at hand which I am dealing with and missing support from "task". I know I can do it via shell commands but it wouldn't be portable.
The text was updated successfully, but these errors were encountered: