StackOverflow 文档 Ansible 教程 成为(特权升级) 只在一项任务中 只在一项任务中 Created: November-22, 2018 - name: Run script as foo user command: bash.sh become: true become_user: foo 以 root 身份运行所有角色任务成为(特权升级)