Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
有什么方法可以让我们使用 Ansible 为特定的 sudo 用户运行多个角色。如果是,我该怎么做。
可靠的 2.7.5
一种选择是使用剧本。例如:
- hosts: webservers remote_user: particular_sudo_user become: yes become_method: sudo roles: - role01 - role02