Ansible 使用hosts:localhost和delegate_将导致无法访问kerberos!错误?
这些重头戏完全在(非塔台)ansible命令行、塔台命令行上工作,但不在塔台GUI中工作。我把它删减到3部剧。前2个在tower GUI中工作,但不是第3个剧本。我显然缺少一些基本的东西。。。 平显示出良好的关系 抛出致命错误:[localhost]无法访问!kerberos证书显然这意味着comp1 我在这里错过了什么?? 为什么它在命令行上工作?听起来像个虫子 使用的命令行:ansible playbook-i inventory/inventory overplay.yml(更新)需要在inventory inport之前将localhost添加到inventory。 同时添加变量ansible\u连接:local 显然,对于ansible命令行(ansible playbook),它有一个默认的本地主机。对于ansible GUI,在使用tower manage inventory import命令时,它不会自动导入host\u vars/localhost文件Ansible 使用hosts:localhost和delegate_将导致无法访问kerberos!错误?,ansible,ansible-tower,Ansible,Ansible Tower,这些重头戏完全在(非塔台)ansible命令行、塔台命令行上工作,但不在塔台GUI中工作。我把它删减到3部剧。前2个在tower GUI中工作,但不是第3个剧本。我显然缺少一些基本的东西。。。 平显示出良好的关系 抛出致命错误:[localhost]无法访问!kerberos证书显然这意味着comp1 我在这里错过了什么?? 为什么它在命令行上工作?听起来像个虫子 使用的命令行:ansible playbook-i inventory/inventory overplay.yml(更新)需要在i
- name: works on all ansible versions
hosts: comp1.private.net
gather_facts: false
tasks:
- win_ping:
- name: works on all ansible versions
hosts: localhost
gather_facts: false
tasks:
ping:
- name: doesn't work in tower GUI.
hosts: localhost
gather_facts: false
tasks:
- win_stat:
path: C:\blah\blah
delegate_to: comp1.private.net