出於某種原因,神社聲稱,它是無法找到我在面料的任務已經指定了一個模板:面料和神社模板上傳
httpd_local = "/path/to/dir/conf/" # with httpd.conf located here
httpd_remote = "/etc/httpd/conf/httpd.conf"
with lcd(httpd_local):
upload_template(filename='/path/to/dir/conf/httpd.conf', destination=httpd_remote, context=context[hostname], use_jinja=True)
但每次我跑的時候,我得到
jinja2.exceptions.TemplateNotFound: /path/to/dir/conf/httpd.conf
它絕對住在那裏。這是怎麼回事?