当前位置: 首页 > news >正文

【解决】firewalld 模块未识别

问题 | firewalld 模块 未被 ansible-playbook 识别


[root@pubserver cluster]# ansible-playbook firewalld.yml 
ERROR! couldn't resolve module/action 'firewalld'. This often indicates a misspelling, missing collection, or incorrect module path.The error appears to be in '/root/cluster/firewalld.yml': line 5, column 7, but may
be elsewhere in the file depending on the exact syntax problem.The offending line appears to be:tasks:- name: try to disble^ here

源码 | yml 剧本


[root@pubserver ansible]# vim firewalld.yml
---
- name: firewalld testhosts: webserverstasks:- name: firewall enabledfirewalld:port: 20permanent: trueimmediate: truestate: enabled

解决方法 | 你可能使用的是 ansible-core 精简版


[root@pubserver ansible]# ansible-doc -l | grep -l
89
或
[root@pubserver ansible]# rpm -qa | grep -E '^ansible(-core)?'

ansible-core 的体量低于 ansible 完整版,除基础模块外,firewalld 这些隶属其他模块。
因此需要重新获取 ansible.rpm

http://www.xdnf.cn/news/712909.html

相关文章:

  • 体育遇上AI:解读新一代智能阅读产品
  • C/C++ 面试复习笔记(1)
  • 提升WSL中Ubuntu编译速度的完整指南
  • MySQL 索引和事务
  • MATLAB语言教程:从入门到精通的全面指南
  • uniapp分包配置,uniapp设置subPackages
  • 电脑如何保养才能用得更久
  • 【高频面试题】数组中的第K个最大元素(堆、快排进阶)
  • 动态设置微信小程序页面标题(navigationBarTitleText属性)
  • MATLAB 横向剪切干涉系统用户界面设计及其波前重构研究
  • 记录一次发生的OOM异常,OutOfMemoryError: Java heap space
  • 【笔记】suna部署之获取 OpenRouter API key
  • DFS:从入门到进阶的刷题指南
  • solidworks报错-只有合并特征才能被阵列。如果恰当,请选择实体的阵列
  • 表里不一的程序世界和物理世界
  • Linux日志管理
  • 【LangChain】
  • CAN通信波特率异常的危害
  • 用Python绘制动态爱心:代码解析与浪漫编程实践
  • 进行性核上性麻痹健康护理全指南:从症状管理到生活照护
  • 杏仁海棠花饼的学习日记第十四天CSS
  • 亡羊补牢与持续改进 - SRE 的安全日志、审计与事件响应
  • 树莓派超全系列教程文档--(52)如何启用VNC功能
  • electron安装报错处理
  • K M G T P E Z
  • ChatGPT Plus/Pro 订阅教程(支持支付宝)
  • opengauss 数据库安装主备 非om方式
  • 11 java语言执行浅析1
  • spring boot 拦截器HandlerInterceptor 不生效的原因排查
  • TripGenie:畅游济南旅行规划助手:个人工作纪实(二十一)