Ansible
Ansible Documentation
wangmingbuhaoqi
V2EX  ›  Ansible

ansible su 切换用户问题?

  •  
  •   wangmingbuhaoqi · Sep 20, 2017 · 6073 views
    This topic created in 3224 days ago, the information mentioned may be changed or developed.

    -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)

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

    有大神帮助看下没?

    1 replies    2017-09-20 18:57:34 +08:00
    uyinn
        1
    uyinn  
       Sep 20, 2017
    输入 root 的密码
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   882 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 36ms · UTC 20:53 · PVG 04:53 · LAX 13:53 · JFK 16:53
    ♥ Do have faith in what you're doing.