Skip to content
#

Ansible Roles

Ansible roles let you automatically load related vars, files, tasks, handlers, and other Ansible artifacts based on a known file structure. After you group your content in roles, you can easily reuse them and share them with other users.

Here are 5,749 public repositories matching this topic...

saurabh-sp-tripathi
saurabh-sp-tripathi commented Jan 3, 2022

I understand the nomad need to be start/restart as a 'root' user because many operation it runs, needs root privilege.

However as a system admin I would like to harden/limit the scope of 'sudo' access to specific tasks only. As far as I have analyzed the following will need sudo/become/root privilege's:

  • handlers/main.yml: restart nomad
  • tasks/main.yml: start nomad
  • file & template oper