ansible connection插件,ansibleconnection


Connection Plugins

Connection plugins allow Ansible to connect to the target hosts so it can execute tasks on them. Ansible ships with many connection plugins, but only one can be used per host at a time.

By default, Ansible ships with several plugins. The most commonly used are the paramiko SSH, native ssh (just called ssh), and local connection types. All of these can be used in playbooks and with /usr/bin/ansible to decide how you want to talk to remote machines.

The basics of these connection types are covered in the getting started section.

local - execute on controller

  • Synopsis
  • Notes
  • Status
    • Author

Synopsis

  • This connection plugin allows ansible to execute tasks on the Ansible ‘controller’ instead of on a remote host.

Notes

Note

  • The remote user is ignored, the user with which the ansible CLI was executed is used instead.


connection: local

在配置管理的节点上执行,不会在远程主机执行

相关内容

    暂无相关文章