0%

ansible-ad-hoc

ansible中ad-hoc的理解(概念)

官方描述

1
2
An Ansible ad-hoc command uses the /usr/bin/ansible command-line tool to automate a single task on one or more managed nodes.
Ad-hoc commands are quick and easy, but they are not reusable.

字面意思就是ad-hoc通过ansible命令执行一个任务来管理节点,ad-hoc特点是快、简单,缺点是不能复用

因为思维惯性,一直以为ad-hoc是跟ansible强绑定的关系,是什么简写,翻官方文档和Google(关键字Ansible ad-hoc)搜索都没发现什么线索,几乎都是引用官方话术或再其基础上加一些简单的个人描述

直到Google搜索只保留ad-hoc关键字...

来自WIKI - Ad hoc关于Ad hoc的解释

1
2
3
4
Ad hoc is a Latin phrase meaning literally "to this". In English, it generally signifies a solution designed for a specific problem or task, non-generalizable, and not intended to be able to be adapted to other purposes (compare with a priori).
...
...
Ad hoc can also be an adjective describing the temporary, provisional, or improvised methods to deal with a particular problem, the tendency of which has given rise to the noun adhocism.[1]

简单概括理解就是: Ad hoc是一个拉丁文短语,描述特定的、临时的、不可复用等问题方法