码迷,mamicode.com
首页 >  
搜索关键字:ansible lnmp    ( 5228个结果
Dockerfile构建nginx、php和tomcat镜像以及搭建企业级harbor
1、使用dockerfile制作nginx+php-fpm镜像,实现lnmp。1.1制作基础镜像[root@offlinebase]#catDockerfileFROMcentos:centos7.8.2003MAINTAINERRICKZHURUNyuminstallwget-y\&&rm-rf/etc/yum.repos.d/*.repo\&&wget-O/et
分类:Web程序   时间:2020-09-21 12:07:12    阅读次数:45
Ansible系统角色——selinux
rhel-system-roles.selinux 此模块为为系统模块,可通过安装rhel-system-roles来获取。模块功能包括: 设置selinux模式(enforcing和permissive) 恢复文件默认上下文类型(restorecon) 设置获取上下文 管理登录以及端口 用法实例 ...
分类:系统相关   时间:2020-09-18 03:24:24    阅读次数:56
ansible常用模块
一、安装 yum install -y ansible 二、密钥授权 ssh-keygen -t rsa注释:-t type指定要创建的密钥类型。 rsa 加密算法 三、模块介绍(https://www.cnblogs.com/mcsiberiawolf/articles/10056777.html ...
分类:其他好文   时间:2020-09-18 02:00:30    阅读次数:37
[Ansible]script模块
将管理节点的脚本上传至被管理节点执行,理论上此模块不许需要被管理服务器上有python [root@ceph1 ~]# cat a.sh touch /tmp/ansible-script [root@ceph1 ~]# ansible webservers -m script -a "a.sh" ...
分类:其他好文   时间:2020-09-18 01:10:39    阅读次数:31
[Ansible]copy 模块
官网 [root@ceph1 ~]# cat a.repo [epel] name=Extra Packages for Enterprise Linux 7 - $basearch #baseurl=http://download.fedoraproject.org/pub/epel/7/$bas ...
分类:其他好文   时间:2020-09-18 01:09:51    阅读次数:28
ansible运行报错CryptographyDeprecationWarning解决
ansible运行报错:CryptographyDeprecationWarning,本文旨在解决该问题。
分类:其他好文   时间:2020-09-17 22:44:47    阅读次数:58
Centos7 安装LNMP
1.安装 为防止掉线等情况,建议使用screen,可以先执行:screen -S lnmp 命令后 wget http://soft.vpser.net/lnmp/lnmp1.7.tar.gz -cO lnmp1.7.tar.gz && tar zxf lnmp1.7.tar.gz && cd ln ...
分类:其他好文   时间:2020-09-17 21:44:05    阅读次数:40
ansible的内置变量
内置变量ansible_version获取到ansible的版本号ansibletest70-mdebug-a"msg={{ansible_version}}"内置变量hostvars操作当前主机时获取到其他主机中的信息name:"play1:Gatherfactsoftest71"hosts:test71remote_user:rootname:"
分类:其他好文   时间:2020-09-17 17:20:47    阅读次数:79
ansible进阶循环
通过item和with_items对重复操作进行循环执行示例:hosts:jack6_1remote_user:rootgather_facts:notasks:name:touchfilefile:path:"{{item}}"state:touchwith_items:"a""b""c"在jack6_1主机上创建三
分类:其他好文   时间:2020-09-17 17:20:16    阅读次数:39
ansible的循环二
with_items遍历列表中每个元素,包括嵌套列表with_list将嵌套列表作为整体元素遍历with_together将多个列表中的子列表元素,一起输出,不成对则null补位示例:hosts:jack6_1remote_user:rootgather_facts:notasks:debug:msg:"{{item}}"with_items:[1,2,3][a,b]debug
分类:其他好文   时间:2020-09-17 17:19:57    阅读次数:31
5228条   上一页 1 ... 7 8 9 10 11 ... 523 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!