1 Star 0 Fork 107

Da yang/flask-ansible

forked from sjgops/flask-ansible 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
Flask-Ansible.sql 1.55 KB
一键复制 编辑 原始数据 按行查看 历史
shijiange 提交于 2019-07-10 10:38 . 更新 Flask-Ansible.sql
use devops;
CREATE TABLE `servers` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`name` varchar(100) NOT NULL,
`ip` varchar(50) NOT NULL,
`port` int(11) NOT NULL,
`user` varchar(50) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
insert into servers (name, ip, port, user) values( 'nginx', '127.0.0.1', 22, 'root' );
CREATE TABLE `user` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`username` varchar(100) NOT NULL,
`password` varchar(100) NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `username` (`username`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
insert into user (username,password) values ('shijiange', md5('shijiangepwd'));
CREATE TABLE `deploy` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`name` varchar(100) NOT NULL,
`hosts_path` varchar(100) NOT NULL,
`hosts_pattern` varchar(100) NOT NULL,
`module` varchar(100) NOT NULL,
`args` varchar(1000) NOT NULL,
`forks` int(11) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
insert into deploy (name, hosts_path, hosts_pattern, module, args, forks) values ('deploy_nginx', '/etc/ansible/hosts', 'all', 'shell', 'ifconfig | grep eth0', 1);
CREATE TABLE `playbook` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`name` varchar(100) NOT NULL,
`hosts_path` varchar(100) NOT NULL,
`playbook_path` varchar(100) NOT NULL,
`forks` int(11) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
insert into playbook (name, hosts_path, playbook_path, forks) values('deploy_nginx', '/etc/ansible/hosts', '/tmp/test.yml', 1);
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Python
1
https://gitee.com/shyanglin/flask-ansible.git
git@gitee.com:shyanglin/flask-ansible.git
shyanglin
flask-ansible
flask-ansible
master

搜索帮助