执行create users 时报错

执行 ansible-playbook -i hosts.ini create_users.yml -u root -k 时报如下错误 [10.136.50.191]: Ansible Failed! ==>

  • changed=false*
  • module_stderr: |-*
  • Shared connection to 10.136.50.191 closed.*
  • module_stdout: |-*
  • /bin/sh: /usr/bin/python: No such file or directory*
  • msg: |-*
  • The module failed to execute correctly, you probably need to set the interpreter.*
  • See stdout/stderr for the exact error*
  • rc: 127*

请帮忙指导一下,多谢!

请检查一下是否安装了python,从报错信息来看是找不到 python

确认了,需要在从机都安装python

:call_me_hand::call_me_hand::call_me_hand: