0

Is there any way we can run multiple roles with a particular sudo user using Ansible. If yes how can i do it .

ansible 2.7.5

1 Answers1

0

An option would be to use a playbook. For example:

- hosts: webservers
  remote_user: particular_sudo_user
  become: yes
  become_method: sudo
  roles:
     - role01
     - role02
Vladimir Botka
  • 58,131
  • 4
  • 32
  • 63