随笔分类 - Py - Ansible
摘要:文章目录 Ansible的同步模式与异步模式 Ansible的异步和轮询 [async、poll] Ansible的并发限制 [serial、max_fail_percentage] Ansible的任务委托 [delegate_to、delegate_facts、run_once] Ansible
阅读全文
摘要:在直接使用 ansible 时候有-B -p 参数可以启用异步操作,然后返回一个 job_id 值 [root@master ansible]# ansible node1 -B 3600 -P 0 -m yum -a "name=ansible" -vv Using /etc/ansible/an
阅读全文
摘要:yum模块 name 必选 指定安装包名 state 执行命令 present installed removed latest absent 其中installed and present等效 latest标志安装yum中最新版本,absent and removed 等效 表示删除安装包 dis
阅读全文