1
0
Fork 0
mirror of https://github.com/mmumshad/ansible-playable.git synced 2025-03-09 23:38:54 +00:00

Move ansible projects folder to config directory

This commit is contained in:
Mumshad Mannambeth 2017-07-08 14:32:27 -04:00
parent 34a003c698
commit 95cd7370af
3 changed files with 7 additions and 3 deletions

View file

@ -130,8 +130,8 @@ export function create(req, res) {
if(!ansibleEngine.projectFolder){
let projectFolderName = util.format('%s_%s',req.user._id, req.body.name);
ansibleEngine.projectFolder = util.format('/opt/ansible-projects/test_%s', projectFolderName);
ansibleEngine.customModules = util.format('/opt/ansible-projects/test_%s/library', projectFolderName);
ansibleEngine.projectFolder = util.format(config.paths.ansible_projects + '/test_%s', projectFolderName);
ansibleEngine.customModules = util.format(config.paths.ansible_projects + '/test_%s/library', projectFolderName);
// Update project request body to save in db
req.body.ansibleEngine.projectFolder = ansibleEngine.projectFolder;