ansible su切换用户的问题?

  -S, --su              run operations with su (deprecated, use become)
  -R SU_USER, --su-user=SU_USER
                        run operations with su as this user (default=root)
                        (deprecated, use become)
                        

但是我执行的时候,看日志,应该是登陆上去了,再切换用户的时候貌似好想不行,也看不懂是啥意思?

有大神帮助看下没?

阅读 3.1k
撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进