我正在尝试通过使用-i /tmp/ifile.txt
传递清单文件来运行剧本,但出现以下错误。
我正在使用的Ansible版本是2.6.14。它一直工作到昨天晚上,但不确定之后发生了什么。
FAILED! => {"changed": false, "msg": "Unsupported parameters for (setup) module: gather_subset, gather_timeout Supported parameters include: fact_path, filter"}
这是完整的命令和输出:
ansible-playbook ansible/playbooks/runtest.yml -i /tmp/ifile.txt
[DEPRECATION WARNING]: [defaults]hostfile option, The key is misleading as it can also be a list of hosts, a directory or a list of paths , use [defaults] inventory=/path/to/file|dir instead. This feature will be removed in version
2.8. Deprecation warnings can be disabled by setting deprecation_warnings=False in ansible.cfg.
[DEPRECATION WARNING]: DEFAULT_SUDO_EXE option, In favor of Ansible Become, which is a generic framework. See become_exe. , use become instead. This feature will be removed in version 2.8. Deprecation warnings can be disabled by
setting deprecation_warnings=False in ansible.cfg.
[DEPRECATION WARNING]: DEFAULT_SUDO_USER option, In favor of Ansible Become, which is a generic framework. See become_user. , use become instead. This feature will be removed in version 2.8. Deprecation warnings can be disabled by
setting deprecation_warnings=False in ansible.cfg.
PLAY [all] *********************************************************************************************************************************************************************************************************************************
TASK [Gathering Facts] *********************************************************************************************************************************************************************************************************************
fatal: [test-01]: FAILED! => {"changed": false, "msg": "Unsupported parameters for (setup) module: gather_subset, gather_timeout Supported parameters include: fact_path, filter"}
to retry, use: --limit @/home/ubuntu//ansible/playbooks/runtest.retry
PLAY RECAP *********************************************************************************************************************************************************************************************************************************
test-01 : ok=0 changed=0 unreachable=0 failed=1