上一页 1 ··· 9 10 11 12 13 14 15 16 17 ··· 40 下一页
摘要: 1.磁盘挂载mount模块 1)帮助语法 EXAMPLES: # Before 2.3, option 'name' was used instead of 'path' - name: Mount DVD read-only mount: path: /mnt/dvd #挂载的目录(nfs客户端) 阅读全文
posted @ 2020-10-07 14:22 六月OvO 阅读(2221) 评论(0) 推荐(0) 编辑
摘要: 1.group模块 1)帮助语法 EXAMPLES: - name: Ensure group "somegroup" exists group: name: somegroup #组名字 state: present #创建用户组 absent #删除用户组 gid: 666 #用户组ID 2)实 阅读全文
posted @ 2020-10-07 14:17 六月OvO 阅读(246) 评论(0) 推荐(0) 编辑
摘要: 1. get_url 模块 1)帮助语法 [root@m01 ~]# ansible-doc get_url EXAMPLES: - name: Download foo.conf get_url: url: http://example.com/path/file.conf dest: /etc/ 阅读全文
posted @ 2020-10-07 14:11 六月OvO 阅读(1051) 评论(0) 推荐(0) 编辑
摘要: 1.yum模块 1)语法帮助 [root@m01 ~]# ansible-doc yum EXAMPLES: - name: install the latest version of Apache yum: name: httpd state: latest name: httpd #服务的名字 阅读全文
posted @ 2020-10-07 14:04 六月OvO 阅读(427) 评论(0) 推荐(0) 编辑
摘要: 1.command模块 [root@m01 ~]# ansible 'web01' -m command -a 'free -m' web01 | CHANGED | rc=0 >> total used free shared buff/cache available Mem: 972 110 4 阅读全文
posted @ 2020-10-07 13:57 六月OvO 阅读(489) 评论(0) 推荐(0) 编辑
摘要: 1.什么是ad-hoc ad-hoc简而言之就是远程执行“临时命令”,执行完即结束,并不会保存 2.ad-hoc使用场景 比如在多台机器上查看某个进程是否启动,或拷贝指定文件到本地,等等 3.ad-hoc使用 [root@m01 ~]# ansible 'web01' -m shell -a 'fr 阅读全文
posted @ 2020-10-07 13:53 六月OvO 阅读(111) 评论(0) 推荐(0) 编辑
摘要: 1)方式一: #ip+端口+用户+密码 [root@m01 ~]# vim /etc/ansible/hosts [web01] 172.16.1.7 ansible_ssh_port=22 ansible_ssh_user=root ansible_ssh_pass='1' [web03] 172 阅读全文
posted @ 2020-10-07 13:48 六月OvO 阅读(509) 评论(0) 推荐(0) 编辑
摘要: 关于ARP信息介绍: ARP表是一个动态表,存储在计算机当中,目的是做一个ip地址与mac地址的对应。假设在同一子网段,计算机A与计算机B通信 计算机A的ip地址: 192.168.0.11 MAC地址AA-AA-AA-AA-AA-AA 计算机B的ip地址: 已知192.168.0.12 MAC地址 阅读全文
posted @ 2020-10-06 16:24 六月OvO 阅读(1124) 评论(0) 推荐(0) 编辑
摘要: 1.浏览器会先去查看响应头部的cache-control(缓存控制)2.如果没有到达过期时间,会直接返回缓存中的内容,不需要重新读取服务器3.如果cache-control设置为 no-cache,浏览器会去读取expires(缓存过期时间)4.如果没有到达expires过期时间,会直接返回缓存中的 阅读全文
posted @ 2020-09-16 18:02 六月OvO 阅读(812) 评论(0) 推荐(0) 编辑
摘要: [root@m01 ~]# cat /etc/ansible/ansible.cfg #inventory = /etc/ansible/hosts #主机列表配置文件 #library = /usr/share/my_modules/ #库文件存放目录 #remote_tmp = ~/.ansib 阅读全文
posted @ 2020-09-16 16:30 六月OvO 阅读(76) 评论(0) 推荐(0) 编辑
上一页 1 ··· 9 10 11 12 13 14 15 16 17 ··· 40 下一页