DEPRECATION WARNING
當執行 ansible ad-hoc 指令或執行這樣的劇本時,我得到一個:
[DEPRECATION WARNING]: Ansible will require Python 3.8 or newer on the controller starting with Ansible 2.12. Current version: 3.6.8 (default, Aug 18
2020, 08:33:21) [GCC 8.3.1 20191121 (Red Hat 8.3.1-5)].
我怎樣才能禁用/抑制它?
答案1
在有效設定檔的部分deprecation_warnings=False
中設定(即, )[defaults]
/etc/ansible/ansible.cfg
~/.ansible.cfg
答案2
配置您的主機以使用受支援的 python 版本。