Ansible 问题
问题:
RuntimeError: Compression requires the (missing) zlib module
解决:
问题:
[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.
解决:
sudo vim /etc/ansible/ansible.cfg
hostfile = hosts 改成 inventory = hosts
问题:
to use the 'ssh' connection type with passwords, you must install the sshpass program