mirror of
https://github.com/mmumshad/ansible-playable.git
synced 2025-03-09 23:38:54 +00:00
Initial Commit
This commit is contained in:
commit
c92f737237
273 changed files with 16964 additions and 0 deletions
|
@ -0,0 +1,35 @@
|
|||
'use strict';
|
||||
const angular = require('angular');
|
||||
|
||||
/*@ngInject*/
|
||||
export function newPlaybookController($scope,$uibModalInstance,ansible) {
|
||||
$scope.newPlaybook = {name:null};
|
||||
|
||||
$scope.createPlaybookLoading = false;
|
||||
|
||||
$scope.createPlaybook = function(){
|
||||
$scope.createPlaybookLoading = true;
|
||||
|
||||
ansible.createPlaybook($scope.newPlaybook.name + '.yml',"",
|
||||
function(response){
|
||||
$scope.createPlaybookLoading = false;
|
||||
$scope.ok();
|
||||
},
|
||||
function(response){
|
||||
$scope.createPlaybookLoading = false;
|
||||
$scope.err_msg = response.data;
|
||||
})
|
||||
};
|
||||
|
||||
$scope.ok = function () {
|
||||
$uibModalInstance.close(null);
|
||||
};
|
||||
|
||||
$scope.cancel = function () {
|
||||
$uibModalInstance.dismiss('cancel');
|
||||
};
|
||||
}
|
||||
|
||||
export default angular.module('webAppApp.new_playbook', [])
|
||||
.controller('NewPlaybookController', newPlaybookController)
|
||||
.name;
|
Loading…
Add table
Add a link
Reference in a new issue