[default] callback_whitelist = profile_tasks # The best way I’ve found to time the execution of Ansible playbooks is by enabling the profile_tasks cal ...
分类:
其他好文 时间:
2020-11-04 19:01:00
阅读次数:
20
k8s故障处理6443是Kubernetes集群APIServer的端口,因此猜测是APIServer挂掉了,因此查看正在运行的进程$ps-aux|grep"kube"发现果然没有有关的进程,因此重启相关的服务systemctlrestartkube-apiserver启动失败kubelet.service失败,用journalctl-xefukubelet搜索报错日志可以看到
分类:
其他好文 时间:
2020-11-02 10:07:54
阅读次数:
27
生产上使用splunk进行日志搜集,服务端已经安装完成,客户端有几十台需要部署,本文介绍使用ansible进行客户端批量安装
分类:
其他好文 时间:
2020-10-22 23:04:15
阅读次数:
26
实例环境:Centos 7.x 服务端的操作 1、这里我们使用epe源进行安装,需要打开自带的Base仓库 yum install epel-release -y yum install ansible -y 2、 ...
分类:
其他好文 时间:
2020-10-08 19:44:06
阅读次数:
27
修改cat/etc/ansible/hosts[test]10.27.235.108host_name=test_host_namehosts:testuser:rootgather_facts:truetasks:name:rsyncdirfilebeathostname:‘name={{host_name}}‘name:"addline"lineinfile
分类:
其他好文 时间:
2020-10-08 18:41:19
阅读次数:
19
1.yum模块 1)语法帮助 [root@m01 ~]# ansible-doc yum EXAMPLES: - name: install the latest version of Apache yum: name: httpd state: latest name: httpd #服务的名字 ...
分类:
其他好文 时间:
2020-10-07 21:26:48
阅读次数:
31
Ansible变量 一、变量介绍 1.概念 变量提供了便捷的方式来管理Ansible playbook的每一个项目中的动态值, 比如nginx-1.6.3这个软件包的版本,在其它地方或许会反复使用,那么如果讲此值设置为变量, 然后再在其他的playbook中调用,会方便许多。如此一来还方便维护,减少 ...
分类:
其他好文 时间:
2020-09-24 21:15:26
阅读次数:
42