2025年10月28日

ansible 时间同步 实例

摘要: 目录结构 hosts deployment - timesyncclient.yml roles - timesyncclient - tasks -main.yml - templater - files vim hosts [timesyncclient] 192.168.106.130 hos 阅读全文

posted @ 2025-10-28 11:24 luokeli 阅读(0) 评论(0) 推荐(0)

ansible 配置阿里源 实例

摘要: 目录结构 hosts deployment - aliyuan.yml roles - aliyuan - tasks -main.yml - templater - files -centos7_base_epel_aliyun_repo.sh -rockylinux9_base_epel_ali 阅读全文

posted @ 2025-10-28 11:16 luokeli 阅读(1) 评论(0) 推荐(0)

ansible init 初始化 实例

摘要: 解耦的目录结构 hosts deployment - init.yml roles - init - tasks -main.yml - templater - files hosts [init] 192.168.106.130 hostname=rocky90-106-130 [all:vars 阅读全文

posted @ 2025-10-28 11:07 luokeli 阅读(1) 评论(0) 推荐(0)

ansible 模块

摘要: Ansible playbook 常用模块 service /systemd 模块 服务器状态 # service centos6 - name: restart XXX service: name: iptables state: started/stoped/restarted/reloaded 阅读全文

posted @ 2025-10-28 10:54 luokeli 阅读(5) 评论(0) 推荐(0)

ansible palybook

摘要: Ansible # ansible 简介 Ansible是一种常用的自动运维化工具,基于python开发,分布式,无需客户端,轻量级,配置语言采用YAML # Ansible 特点 1.模块化:调用特定的模块,完成特殊的任务 2.Paramiko(python对ssh的实现),PyYaml,jinj 阅读全文

posted @ 2025-10-28 10:41 luokeli 阅读(2) 评论(0) 推荐(0)

导航