Ansible 在一个特定命令处停止

问题描述 投票:0回答:0

我的 ansible 配置看起来像并停止在这个命令上:

- name: Ensure deploy user has its own homedir
  file:
    path: "{{ item }}"
    state: directory
    owner: "{{ deploy_user }}"
    group: "{{ deploy_user }}"
    mode: "u=rwx,g=,o="
    recurse: yes
  with_items:
    - "{{ deploy_user_home }}"
    - "/var/run/mysql/"

-vvv
标志之后我得到:

SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o 'User="root"' -o ConnectTimeout=10 -o ControlPath=/home/roott/.ansible/cp/c75397923e -tt 1.2.3.4 '/bin/sh -c '"'"'/usr/local/bin/python3.9 /root/.ansible/tmp/ansible-tmp-4325455.434748-74947423942/AnsiballZ_file.py && sleep 0'"'"''

可能是什么原因? 有时它也会在其他命令上停止,但 99% 它会在该命令上停止。

这不是连接问题。服务器上有东西阻塞了,但是什么?

日志:

May 18 05:57:08 freebsd ansible-async_wrapper.py[5984]: Invoked with 247549129713 600 /root/.ansible/tmp/ansible-tmp-4325455.434748-74947423942/AnsiballZ_file.py _
May 18 05:57:08 freebsd ansible-async_wrapper.py[5987]: Starting module and watcher
May 18 05:57:08 freebsd ansible-async_wrapper.py[5987]: Start watching 5988 (600)
May 18 05:57:08 freebsd ansible-async_wrapper.py[5988]: Start module (5988)
May 18 05:57:08 freebsd ansible-async_wrapper.py[5984]: Return async_wrapper task started.
May 18 05:57:13 freebsd ansible-async_wrapper.py[5987]: 5988 still running (600)
May 18 05:57:18 freebsd ansible-async_wrapper.py[5987]: 5988 still running (595)
.
.

ansible ansible-2.x ansible-inventory
© www.soinside.com 2019 - 2024. All rights reserved.