低质量的社交,不如高质量的独处
摘要: ad hoc 临时的,在ansible里需要快速执行,并不用保存命令的执行方式 简单命令 playbook 复杂命令 阅读全文
posted @ 2019-03-17 17:30 Eren.li 阅读(229) 评论(0) 推荐(0) 编辑
摘要: 定义主机组用户和密码 [webservers] ansible[01:04] ansible_ssh_user='root' ansible_ssh_pass='AAbb0101' [root@ftp:/root] > ansible webserve... 阅读全文
posted @ 2019-03-17 16:38 Eren.li 阅读(4991) 评论(0) 推荐(0) 编辑
摘要: 分组 列出主机清单 自定义指定新的主机清单文件: 阅读全文
posted @ 2019-03-17 16:33 Eren.li 阅读(4743) 评论(0) 推荐(0) 编辑
摘要: [root@ftp:/root] > ansible ansible01 -u root -k -m yum -a 'name=vsftpd state=latest' SSH password: ansible01 | CHANGED => { "ansible_facts": { "pkg_mgr": "yum" }, "changed": tru... 阅读全文
posted @ 2019-03-17 16:25 Eren.li 阅读(733) 评论(0) 推荐(0) 编辑
摘要: [root@ftp:/root] > ansible ansible01 -u root -k -m shell -a 'hostname' SSH password: ansible01 | CHANGED | rc=0 >> ansible01 [root@ftp:/root] > ansible ansible01 -u root -k -m shell -a 'uptime... 阅读全文
posted @ 2019-03-17 16:11 Eren.li 阅读(6969) 评论(0) 推荐(0) 编辑
摘要: [root@ftp:/root] > ansible ansible01 -m ping ansible01 | UNREACHABLE! => { "changed": false, "msg": "Failed to connect to the host via ssh: Warning: Permanently added 'ansible01,192.168.31.1... 阅读全文
posted @ 2019-03-17 16:06 Eren.li 阅读(1138) 评论(0) 推荐(0) 编辑
liweiming0611@163.com
等待有三大特征:
清晰的目的、努力达成的过程、充满不确定性的结果
因上努力,果上随缘
求其上,得其中;求其中,得其下;求其下,无所得