
Linux
文章平均质量分 88
peanutfish
珍惜时间,多多学习。
展开
-
EX294 练习环境网址和考题网址不一致问题解决方案
在EX294的考题中经常出现wget获取文件但是在 mei he学习在线里面实验环境中的网址都是以server1上的域名来的,做题目时还要单独改,不是很方便。原创 2025-04-22 11:59:05 · 887 阅读 · 0 评论 -
ansible.builtin 和 ansible.posix的区别
在RH294的学习时经常看到, ansible.builtin模块(like ansible.builtin.file) 和 ansible.posix模块(like ansible.posix.firewalld)出现,感觉firewalld也是个内置模块,怎么用在两个不同的模块中,所以查了一下区别。在Ansible中,和是两个不同的模块集合(collections),对比如下。模块范围与专注是 Ansible 的核心模块集合,提供通用的、跨平台的基础功能模块。原创 2024-10-18 09:54:50 · 599 阅读 · 0 评论 -
Ansible for Windows hosts(ansible.windows 模块介绍)
Ansible 具有许多专为 Windows 操作系统设计的模块,它使得自动化 Windows 任务变得简单。下面我将介绍一些常用的 Ansible Windows 模块,以及如何配置 Ansible 以管理 Windows 主机。原创 2024-10-18 09:49:14 · 1147 阅读 · 0 评论 -
Chapter 10 RH294 RHEL Automation with Ansible(Last Chapter)
【代码】Chapter 10 RH294 RHEL Automation with Ansible(Last Chapter)原创 2024-10-13 22:15:09 · 1279 阅读 · 0 评论 -
Chapter 9 RH294 RHEL Automation with Ansible
【代码】Chapter 9 RH294 RHEL Automation with Ansible。原创 2024-10-13 22:02:10 · 1120 阅读 · 0 评论 -
Chapter 8 RH294 RHEL Automation with Ansible
【代码】Chapter 8 RH294 RHEL Automation with Ansible。原创 2024-10-13 21:58:42 · 975 阅读 · 0 评论 -
Chapter 7 RH294 RHEL Automation with Ansible
【代码】Chapter 7 RH294 RHEL Automation with Ansible。原创 2024-10-12 23:22:06 · 1339 阅读 · 0 评论 -
Chapter 6 RH294 RHEL Automation with Ansible
【代码】Chapter 6 RH294 RHEL Automation with Ansible。原创 2024-10-06 22:55:27 · 1017 阅读 · 0 评论 -
Chapter 5 RH294 RHEL Automation with Ansible
【代码】Chapter 5 RH294 RHEL Automation with Ansible。原创 2024-10-01 20:22:28 · 960 阅读 · 0 评论 -
Chapter 4 RH294 RHEL Automation with Ansible
【代码】Chapter 4 RH294 RHEL Automation with Ansible。原创 2024-09-30 23:03:49 · 1449 阅读 · 0 评论 -
Chapter 3 RH294 RHEL Automation with Ansible
Chapter 3 RH294 RHEL Automation with Ansible。原创 2024-09-18 22:36:16 · 1375 阅读 · 0 评论 -
Chapter 2 RH294 RHEL Automation with Ansible
Chapter 2 RH294 RHEL Automation with Ansible原创 2024-09-07 22:41:34 · 1310 阅读 · 0 评论 -
Chapter 1 RH294 RHEL Automation with Ansible
Chapter 1 RH294 RHEL Automation with Ansible原创 2024-09-02 12:24:12 · 1178 阅读 · 0 评论 -
使用Ansible stat模块检查目录是否存在
在Ansible中,你可以使用stat模块来检查一个目录是否存在。stat模块可以用来获取文件或目录的状态信息,包括它是否存在。下面是一个简单的例子,说明如何使用statstatregisterdebugisdirTruedebug这个方法确保了不仅检查路径的存在性,还确认了该路径确实是一个目录。如果需要进一步确认目录的状态(例如权限、所有者等),可以通过访问更多的属性。记得将替换为你想要检查的实际目录路径。原创 2024-08-31 00:06:35 · 960 阅读 · 0 评论 -
连不上SSH的可能原因
标题 如果连不上SSH,如下可能原因可以参考:iptables (看看有没有规则链关于ssh(port 22)有reject/drop的,或者直接iptables -F 清空规则)firewall-cmd or firewall-config (Redhat7 or centos 7以上需要查一查public zone的配置,推荐firewall-config GUI界面更容易操作)/etc/hosts.deny (TCP Wrapper里面的设置,也是RH7之后有的,看看有没有关于sshd的定义)原创 2021-02-16 12:55:42 · 1243 阅读 · 3 评论