mirror of
https://github.com/mmumshad/ansible-playable.git
synced 2025-02-15 04:42:05 +00:00
25 lines
527 B
JavaScript
25 lines
527 B
JavaScript
|
'use strict';
|
||
|
|
||
|
import mongoose from 'mongoose';
|
||
|
import {registerEvents} from './ansible.events';
|
||
|
|
||
|
var AnsibleSchema = new mongoose.Schema({
|
||
|
name: String,
|
||
|
info: String,
|
||
|
active: Boolean,
|
||
|
logfile: String,
|
||
|
tags: String,
|
||
|
limit_to_hosts: String,
|
||
|
host: String,
|
||
|
verbose: String,
|
||
|
check_mode: Boolean,
|
||
|
selectedPlaybook: String,
|
||
|
selectedPlay: String,
|
||
|
executionType: String,
|
||
|
executionName: String,
|
||
|
executionTime: Date
|
||
|
});
|
||
|
|
||
|
registerEvents(AnsibleSchema);
|
||
|
export default mongoose.model('Ansible', AnsibleSchema);
|