随笔分类 -  Ansible

摘要:安装Ansible至指定用户并覆盖其它用户环境 官方文档https://docs.ansible.com/ansible/latest/installation_guide/intro_installation.html#locating-python 安装pip curl https://boot 阅读全文
posted @ 2025-05-23 00:54 MacoPlus 阅读(12) 评论(0) 推荐(0)
摘要:FAQ ansible常规设置 配置默认ssh_key ~/.ssh/config [15:37:31] sysadm@SYS-OPS-CD-0-252:/etc/ansible $ cat ~/.ssh/config Host * User sysadm IdentityFile ~/.ssh/s 阅读全文
posted @ 2025-04-14 16:09 MacoPlus 阅读(22) 评论(0) 推荐(0)
摘要:前置条件 epel.repo python3.8+ 升级过程 安装epel.repo 使用 yum install [16:46:46] root@ansible-server:/etc/yum.repos.d # yum install epel-release 已加载插件:fastestmirr 阅读全文
posted @ 2023-06-04 16:47 MacoPlus 阅读(702) 评论(0) 推荐(0)
摘要:ansible_os_family CentOS - name: Gather facts and filter CentOS hosts hosts: os_version gather_facts: true tasks: - name: Check CentOS hosts assert: t 阅读全文
posted @ 2023-05-28 02:15 MacoPlus 阅读(9) 评论(0) 推荐(0)