更新时间:2022-06-15 08:42:34
对我有用的修复是更改 ansibles 的 remote_tmp
目录的路径,在 ansibles 的配置文件中,例如
A fix that worked for me, was to change the path of the ansibles' remote_tmp
directory, in ansibles' configuration file, e.g.
# /etc/ansible/ansible.cfg
remote_tmp = /tmp/${USER}/ansible
可以在此处找到数据化信息.
Datailed information can be found here.
注意:在 ansible v4(或更高版本)中,此变量可能如下所示 ansible_remote_tmp
检查 docs
Note: With ansible v4 (or later) this this variable might look like this ansible_remote_tmp
check the docs
注意:可以在配置文件中进行Ansible配置设置并使用该文件将在以下顺序:
Caution:Ansible Configuration Settings can be made and used in a configuration file which will be searched for in the following order:
ANSIBLE_CONFIG
(如果设置了环境变量)ansible.cfg
(在当前目录下)~/.ansible.cfg
(在主目录中)/etc/ansible/ansible.cfg
ANSIBLE_CONFIG
(environment variable if set)ansible.cfg
(in the current directory)~/.ansible.cfg
(in the home directory)/etc/ansible/ansible.cfg