码迷,mamicode.com
首页 >  
搜索关键字:ansible variables    ( 4649个结果
ansible-playbook 之 拷贝路径
1,使用copy模块时,src 路径可以不用写,直接写要copy的文件名称即可 ansible 自己会根据一定的规律来遍历路径,是否存在该文件(拷贝的对象) 1. [root@localhost kafka]# tree . ├── hosts │ ├── kafka_hosts │ └── kaf ...
分类:其他好文   时间:2020-05-27 15:33:11    阅读次数:231
Ansible模块lineinfile替换指定行内容、多行replace及j2的shell/yaml
案例一般在ansible当中去修改某个文件的单行进行替换的时候需要使用lineinfile模式name:关闭SElinuxlineinfile:dest:/etc/selinux/configregexp:"^SELINUX="line:"SELINUX=disabled"比如替换selinux当中的以SELINUX开头的行,替换为disabledline参
分类:系统相关   时间:2020-05-27 15:30:53    阅读次数:803
less基本知识
Less語法糖less是LeanerStyleSheets的缩写,擴展CSS一些特性。使我們在樣式加入可以加,減,乘,除等更加靈活。一、变量(Variables)@width:10px;聲明變量@height:@width+10px;.className{width:@width;height:@height;}通過less編譯之後為.className{width:10px;height:20p
分类:其他好文   时间:2020-05-27 10:34:35    阅读次数:87
mysql利用存储过程插入大量数据脚本
参考地址: https://blog.csdn.net/student__software/article/details/82048724 1.检查是否开启二进制日志 #查看是否开启二进制日志,ON表示开启,OFF表示没有开启 show variables like 'log_bin_trust_ ...
分类:数据库   时间:2020-05-27 01:04:40    阅读次数:141
解决:navicat出现Table ‘performance_schema.session_variables’ doesn’t exist报错,解决过程中出现mysql遇到的cannot select database 问题
问题描述: navicat连接本地MySQL时出现Table ‘performance_schema.session_variables’ doesn’t exist报错。网上的解决方法是在mysql的bin目录下运行 mysql_upgrade -u root -p --force命令,但是我在输 ...
分类:数据库   时间:2020-05-26 20:21:47    阅读次数:112
Ansible virtualenv下pip3安装requirements报错
ansible step: 问题2:(由于安装的python3.6.4,想默认使用pip3.6安装requirements) 根据官方文档,错误是 executable无法和virtualenv 2个parameters并行 https://docs.ansible.com/ansible/late ...
分类:其他好文   时间:2020-05-25 19:14:17    阅读次数:58
mysql的简单语句
1.查看路径 show variables like 'datadir'; 2.show databases; 3.create database course; 4.use course; 5.create table student(id type); 6.show full fields fr ...
分类:数据库   时间:2020-05-25 12:41:39    阅读次数:92
ansible
1.安装ansible wget -O /etc/yum.repos.d/epel.repo http://mirrors.aliyun.com/repo/epel-7.repo yum install ansible -y 2.管理被控端,管理机先生成秘钥,然后推送公钥 [root@demo ~] ...
分类:其他好文   时间:2020-05-25 00:01:19    阅读次数:61
linux下安装部署ansible
linux下安装部署ansible linux下安装部署ansible 介绍 Ansible是一种批量部署工具,现在运维人员用的最多的三种开源集中化管理工具有:puppet,saltstack,ansible,各有各的优缺点,其中saltstack和ansible都是用python开发的。ansib ...
分类:系统相关   时间:2020-05-24 11:50:29    阅读次数:96
What is the difference between sed and awk
What is the difference between sed and awk sed is a stream editor. It works with streams of characters on a per-line basis. It has a primitive program ...
分类:其他好文   时间:2020-05-24 11:34:00    阅读次数:81
4649条   上一页 1 ... 30 31 32 33 34 ... 465 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!