Remote Exec template question

I need https://github.com/theforeman/community-templates/blob/develop/job_templates/module_action_-ssh_default.erb and https://github.com/theforeman/community-templates/blob/develop/job_templates/module_action-_ansible_default.erb to go into foreman_remote_execution/app/views/templates/ssh at master · theforeman/foreman_remote_execution · GitHub and foreman_ansible/app/views/foreman_ansible/job_templates at master · theforeman/foreman_ansible · GitHub .
Do I need to manually copy over templates from community-templates to foreman_remote_execution and foreman_ansible ?

1 Like

There should be sync scripts in both projects, you just send the PR with the change. But yes, at the end, we copy the code from this repo the same way core does.

I looked at -> foreman_remote_execution/sync_templates.sh at master · theforeman/foreman_remote_execution · GitHub
Sounds like that is not working

 $ ./sync_templates.sh 
 rsync: change_dir "/tmp/tmp.UtEV9t4Eaf/ct/jobs" failed: No such file or directory (2)
 rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1189)     [sender=3.1.3]
 /home/paji/projects/projects/foreman_remote_execution
On branch master
Your branch is up to date with 'origin/master'.

nothing to commit, working tree clean

I created PR Fixes #24989 - Modularity Templates for REX by parthaa · Pull Request #382 · theforeman/foreman_remote_execution · GitHub manually just copying the module-action community template.
OK with tweaking it if it needs do to something diff