1 aws界面上把网络接口附加到ec2实例上 2 把网络接口更改成和ec2实例统一的命名方式 ip a | grep ^ #查看附件网络接口 ip link set eth0 name ens4 &a...
Argo Rollouts 实现蓝绿/金丝雀发布
https://www.yuque.com/coolops/kubernetes/wcn93v
ansible指令总结
1.ansible相关命令总结 1.1.Play 指令 说明 accelerate 开启加速模式 accelerate_ipv6 是否开启ipv6 accelerate_port 加速模式的端口 al...
ansible批量创建用户赋予sudo权限
cat roles/createuser.yaml --- - hosts: test tasks: - name: create user user: name: "{{item.user}}" p...
ansible常用模块学习之过滤器(filters)
"过滤器(filters)"可以帮助我们对数据进行处理 1 upper大小写转化 --- - hosts: 192.168.10.20 remote_user: root gather_facts:...
ansible常用模块学习之文本操作
1 blockinfile模块 path参数 :必须参数,指定要操作的文件。 block参数 :此参数用于指定我们想要操作的那"一段文本",此参数有一个别名叫"content",使用content或b...
ansible常用模块学习之循环模块学习
1.通过with_items实现简单的循环 --- - hosts: test remote_user: root gather_facts: no tasks: - name: test loop ...
ansible常用模块学习之判断模块学习
1 简单条件判断 # cat when.yaml --- - hosts: 192.168.10.20 remote_user: root tasks: - debug: msg: "this is ...
ansible常用模块学习
1 fetch 从远程主机下载文件到ansible服务端 ansible ad-prod -i ad -u ec2-user -s -m fetch -a "src=/etc/hosts dest=/...
ansible学习之role
1.角色对应的目录结构 demorole角色对应的目录结构如下: # tree demorole/ demorole/ ├── defaults │ └── main.yaml ├── files...