server1 在组it_servers 中,但我想使用ansible_connection: local
. 如果ansible_connection
在 playbook 和 host_vars 中定义,如何做到这一点?
--
- hosts: it_servers
vars:
ansible_connection: aws_ssm
roles:
- nginx
- mysql
Run Code Online (Sandbox Code Playgroud)
ansible_connection: local
Run Code Online (Sandbox Code Playgroud) 如何确定用于解析连接到网络的笔记本电脑的公共 Internet 地址的公共 DNS 解析器?我只能通过在 Windows 中运行 ipconfig 看到内部 DNS 解析器地址。