ansible运行报错:CryptographyDeprecationWarning,本文旨在解决该问题。
分类:
其他好文 时间:
2020-09-17 22:44:47
阅读次数:
58
使用注解方式实现RabbitMq整合 在进行该部分实验前把之前的交换器和队列删除,在RabbitMq管理后台完成。 1、RabbitMq配置类 @Configuration public class RabbitMQConfig { /** * 定制JSON格式的消息转换器 * @return */ ...
分类:
编程语言 时间:
2020-09-17 22:24:43
阅读次数:
45
错误: ERROR: [1] bootstrap checks failed [1]: system call filters failed to install; check the logs and fix your configuration or disable system call fi ...
分类:
其他好文 时间:
2020-09-17 21:25:40
阅读次数:
37
一、单个Spring Boot应用使用CorsConfig配置类,实现WebMvcConfigurer解决跨域问题 import org.springframework.context.annotation.Configuration; import org.springframework.web. ...
分类:
其他好文 时间:
2020-09-17 19:05:01
阅读次数:
35
5.在Jenkins中集成SourQube服务端 点击Jenkins Manage jenkins ConfigureSystem配置 5.1添加一个SonarQube servers 5.2勾选 Enable injection of SonarQube server configuration ...
分类:
其他好文 时间:
2020-09-17 18:50:36
阅读次数:
34
1.下载镜像 docker pull rabbitmq:3.7-management 2.运行容器 docker run -d --name myrabbitmq -p 5672:5672 -p 15672:15672 rabbitmq:3.7-management 3.直接外网访问15672端口 ...
分类:
其他好文 时间:
2020-09-17 18:31:26
阅读次数:
34
内置变量ansible_version获取到ansible的版本号ansibletest70-mdebug-a"msg={{ansible_version}}"内置变量hostvars操作当前主机时获取到其他主机中的信息name:"play1:Gatherfactsoftest71"hosts:test71remote_user:rootname:"
分类:
其他好文 时间:
2020-09-17 17:20:47
阅读次数:
79
通过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
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
with_indexed_items示例:hosts:jack6_1remote_user:rootgather_facts:notasks:debug:msg:"{{item}}"with_indexed_items:[t1,t2][t3,[t4,t5]][t6]输出结果如下:[root@jack7-1work]#ansible-playbook--syntax-checki
分类:
其他好文 时间:
2020-09-17 17:19:41
阅读次数:
32